Fractals ZigZag

v10.3
Fractals ZigZag

This indicator is a new attempt to draw compatible zigzag for automated trading with ProOrder.

The zigzag are drawn with the new fractal point that is contrarian to the last one.

The “cp” parameter control the depth of analysis to find fractals, higher is the value, deeper are the valleys and taller the peaks. Default value is 20.

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?

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

  1. zilliq • 07/28/2016 #

    Good Job Nicolas,
    But may be there is still a problem as you see on my graph ?
    Have a nice day
    Zilliq
     
    Ps: I can’t post a graph with the forum (Don’t have permission…)
    http://zupimages.net/up/16/30/ue5x.png

    • Nicolas • 07/28/2016 #

      It’s normal. You haven’t read the code obviously 🙂
      As you already know it, PRT don’t allow to redraw past informations. So I disallow the others same informations (in your case a green box), to be shown as the time passing by. But you can change it if you like by deleting all “lastpoint” references in the code.

  2. miguel33 • 07/28/2016 #

    Ciao nicolas,
    anche io non riesco ad inserire il tuo codice .
    mi da errore di sintassi linea 29 e 30 .
    come posso riparare ?
    potresti postare un codice leggibile ?
    grazie 
    miguel

    • Nicolas • 07/28/2016 #

      Questo indicatore è compatibile solo con la versione 10.3 di ProRealTime.

  3. zilliq • 07/28/2016 #

    Thanks Nicolas,
    I didn’t read the code at all 😉
    Have a good day
    Zilliq

  4. supertiti • 07/28/2016 #

    Sur Telefonica n’apparaissent pas les derniers plus haut/plus bas !!??  un commentaire svp
     
    http://zupimages.net/viewer.php?id=16/30/dezu.jpg

    • Nicolas • 07/28/2016 #

      En effet, c’est ce que je viens de spécifier à Zilliq. Puisque on ne peut pas supprimer et retracer des éléments déjà tracés, j’ai pris le partie de ne tracer que les plus haut et plus bas que si le précédent était un signal inverse. Tu peux modifier ce comportement en supprimant tout ce qui se rapporte à “lastpoint” dans le code. Bien entendu, les précédents signaux resteront tracés sur le graphique.

  5. miguel33 • 07/28/2016 #

    Nicolas ,
    con IG si collega alla versione 10.2 
    ho provato ad inserire l’indicatore nella versione in demo 10.3 
    lo accetta ma non si vede nulla esce completamente bianco. 🙁
    cosa miguel immagine dici in proposito ?
    grazie per la tua collaborazione
    miguel

  6. ghary • 07/28/2016 #

    Bonjour je reviens sur cette indicateur intéressant, ne peut on sur la V2 mettre des croix ou autre à la place des carrés coloriés afin d’indiquer le fractale plus bas, plus haut du zigzag ? si oui que faut il remplacer ?
    merci….

    • Nicolas • 07/28/2016 #

      On peut retourner les valeurs de BOTy et de TOPy pour connaître les derniers Fractals trouvés. Puisqu’on ne peut pas tracer dans le passé avec la version 10.2, ces valeurs apparaîtront à partir du moment où elles seront trouvés et donc en décalage par rapport la bougie en question, le rendu visuel ne sera pas du tout le même.

  7. ghary • 07/28/2016 #

    D’accord cela donnerai quoi au niveau du code, je vais voir au niveau visuel si c’est parlant ou pas assez pertinent.. merci pour la réponse rapide…

    • Nicolas • 07/28/2016 #

      L’indicateur en question existe déjà pour la version 10.2, c’est celui-ci = http://www.prorealcode.com/prorealtime-indicators/bill-williams-fractals/

    • Nicolas • 07/28/2016 #

      Suite à une autre demande, un screener pour la détection des instruments ayant eu un nouveau Fractal depuis les X dernières bougies a était codé et est disponible ici : http://www.prorealcode.com/prorealtime-market-screeners/fractals-stock-screener/

  8. Petrus • 07/28/2016 #

    Hi Nicolas. Nice indicator, as always!
    It could be very useful to detect some waves on the graphic. Could it be possible to mark the last 5 points with the text 1, 2, 3, 4 and 5, in addition of the green and red boxes?

    • Nicolas • 07/28/2016 #

      Yes of course, please add a new request in the ProBuilder forum.

    • Petrus • 07/28/2016 #

      Thanks Nicolas. Done.

  9. Eusebio Garcia Nuez • 07/28/2016 #

    ondas de wolf please

  10. maximus78 • 07/28/2016 #

    Ciao Nicolas, potresti fare un esempio di come l’utilizzeresti in un sistema automatico invece del normale zig zag?
    Grazie

    Massimo

    • Nicolas • 07/28/2016 #

      Ci sono già molte strategie che utilizzano questo indicatore nella libreria, basta cercare “zigzag” con lo strumento di ricerca del sito.

  11. pvzyl • 07/28/2016 #

    good day

    I am trading the SA 40 on IG markets , I am using the basics like trend lines and zig zag ,but I don’t see anyone write any strategies on the SA 40 , I want to know why and where can I find some of those

  12. beppe8949 • 07/28/2016 #

    Ciao Nicolas, perchè quando aggiungo l’indicatore, viene aggiunto in basso e non sul grafico? Grazie mille!

    • Nicolas • 07/28/2016 #

      Por favor agrégalo al precio, gracias.

  13. beppe8949 • 07/28/2016 #

    non ho capito perdonami!

  14. JanWd • 07/28/2016 #

    Dear Nicolas,

    I extended your Fractals Zigzag indicator with a minimum percentage of change before a fractal point will be set, like the percentage you can choose in the standard PRT-ZIGZAG indicator.
    This is meant to avoid Fractal Points in a relative flat market.
    I tested the adjusted code, and it seems to work correctly.

    The changes I made are shown in CAPITAL LETTERS below, (all other code remains the same.)
    (I based the adjusted Fractals Zig Zag code on the CLOSE, not on the original high/low in your code, because the original PRT ZigZag indicator is also based on the Close)

    //—external parameters
    cp = cp1 // default 20
    Perc = perc1/10000 // default 2% = highest[2*cp+1](close) AND CLOSE[CP] >= LOWEST[2*CP+1](CLOSE)*(1+ PERC) then //top, base for short <== RENEWED LINE
    LH = 1
    else
    LH = 0
    endif

    if close[cp] <= lowest[2*cp+1](close) AND CLOSE[CP] <= HIGHEST[2*CP+1](CLOSE)*(1- PERC) then //bottom, base for long = highest[2*cp+1](close) and close[cp] >= lowest[2*cp+1](close)*(1+ Perc) then //top, base for short
    LH = 1
    else
    LH = 0
    endif

    if close[cp] <= lowest[2*cp+1](close)and close[cp] 0 and (lastpoint=-1 or lastpoint=0) then
    DRAWSEGMENT(lastX,lastY,TOPx,TOPy) COLOURED(200,0,0,255)
    DRAWTEXT(“■”,TOPx,TOPy,Dialog,Bold,20) coloured(200,0,0,255)
    lastpoint = 1
    lastX = TOPx
    lastY = TOPy
    endif
    if LL<0 and (lastpoint=1 or lastpoint=0) then
    DRAWSEGMENT(lastX,lastY,BOTx,BOTy) COLOURED(0,200,0,255)
    DRAWTEXT("■",BOTx,BOTy,Dialog,Bold,20) coloured(0,200,0,255)
    lastpoint = -1
    lastX = BOTx
    lastY = BOTy
    endif

    RETURN

  15. JanWd • 07/28/2016 #

    Dear Nicolas,
    Forget my previous post, apparently too many text with an appendix, text was mixed up,
    hereby new try:

    I extended your Fractals Zigzag indicator with a minimum percentage of change before a fractal point will be set, like the percentage you can choose in the standard PRT-ZIGZAG indicator.
    This is meant to avoid Fractal Points in a relative flat market.
    I tested the adjusted code, and it seems to work correctly.

    The changes I made are shown in CAPITAL LETTERS below, (all other code remains the same.)
    (I based the adjusted Fractals Zig Zag code on the CLOSE, not on the original high/low in your code, because the original PRT ZigZag indicator is also based on the Close)

    //—external parameters
    cp = cp1 // default 20
    Perc = perc1/10000 // default 2% = highest[2*cp+1](close) AND CLOSE[CP] >= LOWEST[2*CP+1](CLOSE)*(1+ PERC) then //top, base for short <== RENEWED LINE
    LH = 1
    else
    LH = 0
    endif

    if close[cp] <= lowest[2*cp+1](close) AND CLOSE[CP] <= HIGHEST[2*CP+1](CLOSE)*(1- PERC) then //bottom, base for long <== RENEWED LINE
    LL = -1
    else
    LL = 0
    endif

    If you have any comments please let me know.
    Kind regards, Jan

  16. JanWd • 07/28/2016 #

    Dear Nicolas, and others,

    Third comment:

    my solution as presented does not work satisfactory with my previous presented code, sorry. It should present in the graph only fractal points that a x % higher or lower as the previously fractal point, but that does not always appear in the graph, sometimes the next top fractal point is even lower as the previous bottom fractal point, which is maybe caused by the limited bars used for the calculation and the setting of the point of reference, CP bars in the past ?

    Alternatively code below, which is easier to read, but regrettable gives still not my desired result. Sometimes the next top fractal point is even lower as the previous bottom fractal point or vice versa,

    if close[cp] >= highest[2*cp+1](close) and close[cp] >= BOTy[1] *(1+ Perc) then //top, base for short
    LH = 1
    else
    LH = 0
    endif

    if close[cp] <= lowest[2*cp+1](close)and close[cp] <= TOPy[1]*(1- Perc) then //bottom, base for long
    LL = -1
    else
    LL = 0
    endif

    Comments or remarks would be appreciated.
    Nice weekend,
    Jan

    • Nicolas • 07/28/2016 #

      Hi Jawd, good idea. Should be interesting to discuss the code in a separated thread in the forum. I’ll meet you there, thank you.

  17. ullle73 • 250 days ago #

    when i add this indicator nothing happens? all black on indicator, same goes when adding it to price chart

    • Nicolas • 250 days ago #

      add it on price chart, change the cp parameter according to the period you want to observe for new fractals to pop up. Be sure your PRT platform is version >= 10.3

  18. Robert22 • 193 days ago #

    hola buenos días: yo estoy buscando una cosa parecida para realizar con ello un indicador de divergencias con el precio y el RSI y no se donde estais escribiendo sobre éste tema, alguien podría decirmelo?

    • Nicolas • 193 days ago #

      https://www.prorealcode.com/prorealtime-indicators/rsi-classical-hidden-divergences-indicator/

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
Nicolas That's not possible because the code uses ZigZag instruction from the platform which is not ...
MrMUCKIE Thanks Nicolas. Do you have any idea of how I could generate support/resistance figures for ...
Nicolas Try fractals, swing high/low points, donchian channel, ..
Nicolas No. The code delivered on our website is for ProRealTime trading platform: https://www.pror...
growland1au Hi Nicolas, I am a beginner to this and I think your Pivot reversal strategy alerts indicat...
Nicolas I can't remember, if you can't find it anywhere in forums, open a new topic if you want it t...
abhay I am getting a shading between the lines, how can I avoid that. I just want to see lines as ...
Vonasi Delete the 'Color Zone' in the indicator settings window.
rama This is one of best indicator to trade any time frame
Madrosat Is this indicator as it is , useful in strategy automatic
Vangotten Muy buen indicador
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 Add the ZigZag indicator on the chart, and with the same percent setting as this indicator.
Kris75 Hello Nicolas, Il semble que la variable DaysBefore fasse planter la représentation graphiq...
Nicolas Peut-être à cause du manque d'historique. Celle-ci est utile pour limiter la quantité de ret...
Nicolas Please open a new topic if you need custom coding.
Rory Dryden I like the look of this. I shall try it tomorrow.
cervantes2 Buenas tardes,me gustaria saber si tiene un proscreener de este indicador ,que busque los va...
TAC Bolsa Here you have the information of the indicator. https://www.tiburonesdealetacorta.com/searc...
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.
Nicolas Yes, this could be easily programmed with the assisted creation tool.
Karthick S Hi Nicolas, Can you please share MT4 version of this? Cheers
Nicolas No. This website is only dedicated to ProRealTime programming :)
Simba Greetings from germany! :) Can you told me your EXIT-strategy for this, please? :) Would ...
Nicolas
2 years ago
Nicolas Merci, faire une demande dans le forum approprié.
Pere Thanks for this good indicator Nicolas. I would like to make the upper and lower limits mor...
Nicolas because fractals are known 2 bars later! that's why I used rectangle to plot them in the past.
juanj The last fractal will be coordinate 1 and the high/low of the candle that generates an angle...
juanj And the point of violation is the close of the candle that violates the line by generating a...
juanj For the latest version of the strategy or to follow updates and developments see the thread ...
Nicolas No sorry, please use this file instead into a prorealtime trading platform.
rdabbs I just installed this indicator. It opens in its own pane rather than overlaid on the chart ...
Nicolas Just apply it on your price chart instead and you're ok.
Kris75 @Ale Hi Ale, Thanks for this rocking algo ;-) there is though a counter performance in 201...
Kris75 Sorry here is my question: >> how can we explain this and correct it?
Samitha Prasanna Hi ALE, would you be able to provide the values for the below part of the code (time >=1...
owes29 Do a Youtube search for "Revolutionary Indicators Reveal Tops & Bottoms" it explains a v...
owes29 Hi is there anyway to develop this for the pro scanner on daily or hourly scans. so it woul...
Nicolas Of course, please add a query in the proscreener forum.
dakaodo Hi, Wilko. Acc to the original FRAMA paper by Ehlers, Ehler's own code only takes inputs for...
dakaodo For reference, here is Ehlers' original paper: http://www.mesasoftware.com/papers/FRAMA.p...
dakaodo Here is the code with only SC included, per ETFHQ. pri=customclose //len>=4, even on...
Nicolas
3 years ago
haseluis Hello Niklas, I would like to use the screener for the display in the m15, which changes to ...
Nicolas Nothing to change or you can play with different settings at lines 6 and 7.
haseluis Thank you Niklas, I'm still looking for an indicator 123 or direct to Joe Ross, can you help...

Top