Breakout zigzag ATR version

Breakout zigzag ATR version

This indicator uses a zigzag indicator to measure swing highs and lows. It does so by using ATR instead of % in the zigzag. If the close is beyond the high or low, the instrument will pop up in the screener list for the next 7 bars.

Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials

  1. DIOS • 11/12/2020 #

    Nice job, Quel est l’indicateur qui permet d’avoir les bandes blanches rectangulaires?

    • Luciole • 11/12/2020 #

      @DIOS : very simple :

      ind1 = ZigZagPoint[2*averagetruerange[200]](close)

      //high boundary
      if ind1[1] > ind1 and ind1[2]<ind1[1] then
      ind2 = highest[5](high)
      endif

      //low boundary
      if ind1[1] ind1[1] then
      ind3 = lowest[5](low)
      endif

      return ind2 as “low”, ind3 as “high”

  2. DIOS • 11/12/2020 #

    Hello, la ligne 9 ,11,13 me sorte en erreur?

  3. Seb • 11/12/2020 #

    @DIOS: take the first part of the code, until the proscreener conditions and return ind2 as high and ind3 as low

  4. DIOS • 11/12/2020 #

    C’est bon j’ai trouvé, ++

    • Equity • 11/12/2020 #

      Hello, would you be so kind, tried to figure your comment out – sorry for asking, i don’t understate it…
      Result

      ind1 = ZigZagPoint[2*averagetruerange[200]](close)

      //high boundary
      if ind1[1] > ind1 and ind1[2]<ind1[1] then
      ind2 = highest[5](high)
      endif

      //low boundary
      if ind1[1] ind1[1] then
      ind3 = lowest[5](low)
      endif

      return ind2 as “high”, ind3 as “low”

      What ist wrong, thanks in advance

    • Equity • 11/12/2020 #

      Dear Seb, would be greatful if you could addtionally post the Indicator. Thanks in advance for your help. regards

    • Seb • 11/12/2020 #

      @Equity: the low boundary part should be this, as in the Proscreener code:
      //low boundary
      if ind1[1] ind1[1] then
      ind3 = lowest[5](low)
      endif

  5. StephFor • 11/12/2020 #

    Bonsoir, j’aime bcp l’idée, merci pour le code. Je l’utilisais sur la version 10.3 sans problème, je viens de passer à la version 11.1, qq chose ne fonctionne plus, on dirait qu’il ne prend pas en compte de calcul du ind1 et donc du zigzag correctement. Si je mets une valeur fixe comme argument du zigzag cela fonctionne bien. Il n’aime pas recalculer le averagetruerange sur les 200 dernières periodes à chaque fois… étrange. Si vous avez une idée, elle est la bienvenue. Merci

    • Nicolas • 11/12/2020 #

      Tout fonctionne pour moi en Daily ou Weekly, sur les listes NYSE et NASDAQ, des dizaines de retour.

  6. Manu L • 11/12/2020 #

    Bonjour,
    je n’y arrive pas 🙁

  7. Manu L • 11/12/2020 #

    @DIOS, pourrais-tu nous founir le programme ou fichier, merci

  8. Manu L • 11/12/2020 #

    J’ai reussi a creer l’indicateur mais ca m’affiche tout simplement une ligne

    //zigzag indicator
    ind1 = ZigZagPoint[2*averagetruerange[200]](close)

    //high boundary
    if ind1[1] > ind1 and ind1[2]<ind1[1] then
    ind2 = highest[5](high)
    endif

    //low boundary
    if ind1[1] ind1[1] then
    ind3 = lowest[5](low)
    endif

    return ind2 as “low”, ind3 as “high”

    • Nicolas • 11/12/2020 #

      la valeur du zigzag est peut être trop grande par rapport à l’UT ou l’instrument choisit !

  9. StephFor • 11/12/2020 #

    Merci, étrange… j’ai le meme problème de ligne décrit plus haut (pour l’indicateur). J’ai mis 2*averagetruerange[200] dans une variable que je vois bien évoluer au fil du temps, mais ind1 reste une ligne à légère croissance tout le long de l’historique… ind2 et ind3 restent donc bien sur à 0 tout le long car ind 1 ne bouge pas…
    Juste por être sur de comment fonctionne le code, à chaque bar 2*averagetruerange[200] est recalculé donc zigzag aussi. Le dernier affichage est se base sur le zigzag du dernier 2*averagetruerange[200] calculé, n’est ce pas ?
    Sur mon dernier calcul j’ai une valeur de 2*averagetruerange[200] à 396 pour un indice à 11 905 (nasdaq daily), et bien sur si je mets la variable de zigzag fixe à 396 dans le code ca marche 🙁

  10. Manu L • 11/12/2020 #

    merci pour ces infos mais je comprends pas tout 🙁 Quelle valuer faut-il changer, comment la calculer,…..

  11. StephFor • 11/12/2020 #

    Difficile de t’apporter une réponse, car le code présente un problème chez moi que je ne comprends pas.
    Pour que cela fonctionne, je suis obligé de remplacer la variable 2*averagetruerange[200] par sa dernière valeur fixe pour avoir un bon affichage. Malheureusement cette valeur va dépendre de l’instrument que tu choisis, donc je dois le modifier pour chaque instrument. Mais logiquement cela doit fonctionner sans faire cela, le code original est bon (ca marche chez plusieurs personnes), perso quand je le fais tourner sur la verison 10.6 de PRT ca marche à tous les coups…

  12. Manu L • 11/12/2020 #

    @Steph, quand tu parles de valeur, le 200 tu le remplaces par quoi exactement ?

  13. StephFor • 11/12/2020 #

    Le 200 ne bouge pas, il corespond au nombre de bars du passé sur lequel on calcule le averagetruerange. Je remplace tout l’élement 2*averagetruerange[200] -qui sert d’argument au calcul du zigzag dans le code- par une valeur. Dans mon example le averagetruerange sur les 200 dernieres bars est de 198, donc x2 = 396. C’est ce 396 que je mets dans le zigzag.

  14. Manu L • 11/12/2020 #

    En terme de lignes de codes, ca ressemble a quoi ?

  15. StephFor • 11/12/2020 #

    //ind1 = ZigZagPoint[2*averagetruerange[200]](close)

    avr = 3 //3%

    ind1 = ZigZag[avr](close)

    //high boundary
    if ind1[1] > ind1 and ind1[2]<ind1[1] then
    ind2 = highest[5](high)
    endif

    //low boundary
    if ind1[1] ind1[1] then
    ind3 = lowest[5](low)
    endif

    return ind2 as "low", ind3 as "high"

  16. Manu L. • 11/12/2020 #

    @Steph
    un grand merci pour ton aide mais 🙁
    J’ai copier le code tel quel mais cependant j’ai 3 erreurs aux lignes 13, 15 ,17 !? J’ai supprime l’un des ind1[1] sur cette ligne if ind1[1] ind1[1] then et plus d’erreur.
    La courbe superieure se dessine bien mais la courbe inferieur n’a pas la meme formel : pas de phenomene de parallelisme rectiligne !

    De plus peux-tu m’en dire un peu plus sur le avr = 3 //3% : a quoi ca correspond
    Et est ce que cet indicateur est utilisable sur tous les UT ?

  17. AlphaMauss • 11/12/2020 #

    Je n’ai pas réussi à faire fonctionner l’indicateur avec le code fourni en commentaire sur PRT 11.1.

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
Thomas
5 years ago
Thomas Como? no intiendo. Can you write in english . It works! Download the itf file.
Thomas New Version comin soon...
CHARLESRACHELLE OLA NAO SERVE PARA MT4?
datageek How do I change the thickness of the line or change it too dashed lines? Kind regards
lkiklkik NE fonctionne pas ( ou plus ... )
Nicolas il faut modifier toutes les références à top par itop et bottom par ibottom. Ces mots étant ...
juanj
5 years ago
juanj I have actually completely redesigned this indicator with loads of improvements, so will res...
ottimo Thank you Nicolas, great indicator, N. 1
tikigai Merci Nicolas! First Happy new Year 2020. Very good indicator BUT (yes the french "oui, m...
Nicolas Whats prorealtime version? Did you try in version prior to v11? indicator's call and loop ca...
teddy58 Ich habe es mit N= 1,5 und N=2,5 getestet mit 200000 Einheiten. Es funktioniert leider erst ...
Matriciel I use this indicator to help me make a decision when there is a divergence. The divergences ...
Jan Wind Hi, I personnaly am not a big fan of ZIGZAG indicator, as it repaints itself during time. ...
Nicolas Sure, I suggest you open a new topic in the forum to discuss about your ideas.
hdgm Bonjour Nicolas, est ce que l'on peut en faire une stratégie de trading automatisée ?
Nicolas Non, pas en utilisant l'indicateur zigzag traditionnel de la plateforme.
Marcos Alvarez Dominguez Hello Nicolas, is it possible to stablish a bullish screener for this indicator when the cen...
Nicolas Please open a topic in the screener section to ask for this specific query.
zaher123 Hello, the indicator doesn't show up anything on the screen, any suggestions please?
Nicolas Apply it on the price chart. The indicator plot just one single line. There are two in the...
jamesoc Hi Nicolas, do you happen to know if there is an indicator that can be applied to charts, to...
gustavobp Buenos dias Nicolas, al agregar tu indicador no me reconoce la variable Price ni en la linea...
TACBOLSA
6 years ago
Tradingrob Hi Tac Bolsa, thanks for the information. But after carefully ready all the material i still...
TAC Bolsa Hello, the indicator creates the support depending on the volume and is dynamic.
carlvan Not working on PRT 11.1. And the site https://www.tiburonesdealetacorta.com does not exist....
bharatjai Script 'Adaptive ATR' has been saved line 24: no viable alternative at input 'lr' Gettin...
Nicolas download the itf file and import it into your platform.
Francis3332 Bonjour à tous, J'aime beaucoup cet indicateur et j'aimerais pouvoir l'utiliser sur la dern...
AGTrader Interesante, muy visual Doc. Felicidades!!!
Andraxx simplemente impresionante Dom...te sigo en youtube. Me ha gustado tu canal. Gracias por comp...
rama I want to use this indicator in trading system, it says zig zag is obsolete and not supported
Nicolas Right, due to its repainting behavior, the zigzag is not allowed in automated trading with r...
rama I noticed it changes as time progress, I am 7 as the average, how many period it wont chang...
Caribeengeek Bonjour j’avais vu que vous proposiez d’écrire des codes pour ceux qui s’y connaisse pas Mai...
Caribeengeek Les devises unité
Nicolas Merci d'utiliser le forum pour les demandes de programmation personnalisée
jebus89 Big thanks for sharing this :) Seems to work as expected, good stuff.
WarningTrading Comment peut on la comparer ? comme ceci ? cela ne me donne plus le message d'erreur manque...
sally31120 Bonjour, je n'arrive pas à créer ce screener close > supertrend extended2[1] la réponse...
Nicolas voir ce sujet pour un screener basé sur Supertrend Extended: https://www.prorealcode.com/top...
JanWd Tried the code, nice concept, seems to work quit well for US/EUR 2hrs, Other markets seems n...
JR1976 Simple and nice code , congrats !!! Seems work well with TIme frame 1 h
phanz Hi all, Sorry revisiting an old post. This algo is simple, and simplicity is the ultimate ...
poonsl2828 Hi! Francesco I have test it on GBP/USD but it only have a trade on 9 Jun which i backtes...
ullle73 why not use 1h chart? has 95% hitrate
ullle73 i see most of positions are only 1 pip before exit?

Top