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?

PRC is also 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 • 07/28/2016 #

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

    • Nicolas • 07/28/2016 #

      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 • 07/28/2016 #

    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 • 07/28/2016 #

      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 avatar avatar

+3 more likes

Related users ' posts
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.
Bhanu Pratap Dear Sir, Can I get MQL4 File for this indicator and last man standing . pls looking forward...
ISTJ_T Hi Nicolas Thanks a lot for the indicator. Trading off the TradingView and have issues wit...
Nicolas Just use ProRealTime and its powerful screener for stocks.
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....
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...
Simba Greetings from germany! :) Can you told me your EXIT-strategy for this, please? :) Would ...
Nicolas
6 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.
gblast I added this indicator to my pro real time but its not showing up on my candles. Its invisible
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 ...
phanz i backtested it with 10K units of EURUSD 1 hour i get an equity curve that is going one way ...
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.
Samitha Prasanna Hi ALE, would you be able to provide the values for the below part of the code (time >=1...
Player Bonjour, J'ai testé cette stratégie sur EurUSD en 1 heures sur 10000 unités et le résultat ...
Player Vue du rapport du Backtest https://ibb.co/8BMrBz6
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.
Bruno Carnazzi C'est dommage, cette histoire d'énergie fractale bousille complètement la précision de l'ind...
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
7 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