ZigZag SupDem (supply and demand zones)

v10.3
ZigZag SupDem (supply and demand zones)

The ZigZag SupDem Zones Indicator detects support and resistance (supply and demand) zones using peaks and troughs formed by the ZigZag.
Depending on the timeframe used, it is necessary to set the necessary percentage to form a new peak or trough, by default that is set to 3%, ideal for most instruments on a unit of daily time.

The detection will be done only on the last periods set by the variable “lookback”.
The detection is validated if the indicator finds at least “minPoints” troughs or peaks not more distant than at most “threshold” in percentage.

  • percent = 3 (percentage change of ZigZag to get new peaks and troughs, new swings)
  • lookback = 200 (the period to search for supports and resistances)
  • threshold = 1 (percentage to validate another zigzag from the one previously found to validate a support or a resistance)
  • minPoint = 2 (at least it takes 2 swings of the same type, located one another less than “threshold” percent to validate a support or resistance)

 

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. Makabro • 273 days ago #

    Hola Nicolas,tengo un problema cuando importo el .itf pone que esta instalado correctamente,pero cuando lo añado ,se añade debajo del precio en una ventana nueva,como si fuese un rsi o un macd…me salen las velas de frenada y compra, pero me salen por abajo no en el mismo precio…como podría arreglarlo ?
    Felicidades por el trabajo realizado.

  2. Nacho Bosquet • 229 days ago #

    Hola Nicolas,…. ¿Tienes disponible algún screener para ondas de wolfe? Haces un trabajo increíble!!!! Gracias!!!

  3. pedrohcarvalho@yahoo.com.br • 193 days ago #

    Hola Nicolas, por si acaso tienes el código de la funccion ‘ ZIgZAG’ ? O… sabrias como desarrollar solamente esta funccion? Muchas Gracias!!!

    • Nicolas • 192 days ago #

      Esta función es interna y no puede reproducirse con el mismo comportamiento por código (repita en tiempo real la última parte superior o inferior).
      Los indicadores de fractales también son un buen enfoque para encontrar las partes superiores e inferiores, hay muchos indicadores basados en ellos en la biblioteca.

  4. MrMUCKIE • 185 days ago #

    Would there be a way to derive these support/resistance figures for automatic trading?

    • Nicolas • 185 days ago #

      That’s not possible because the code uses ZigZag instruction from the platform which is not reliable for automatic trading (and not allowed by the system).

  5. MrMUCKIE • 185 days ago #

    Thanks Nicolas. Do you have any idea of how I could generate support/resistance figures for automatic trading?

    • Nicolas • 185 days ago #

      Try fractals, swing high/low points, donchian channel, ..

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
Kris75 @atxeel pleasure! please share your strategies hypothesis so we can make a winner strat !
dario ti This implement In PRT is one of the greatest work on this site, i hope the IG volume data fe...
assafn I'm really new at this, so be gentle:) how can I create a scanner based on this wonderful i...
Matriciel Well done Vonasi ! You have a lot of ideas. Personally, I work with Moving Averages only. ...
Bard Very interesting approach Vonasi! I'm getting a 404 error when trying to download though?
Vonasi I just tested and I was able to download with no error.
Vonasi Change line 76 to if opendayofweek opendayofweek[1] and opendayofweek 0 then if ...
Vonasi I just noticed that the above post makes no sense as the symbols have been removed. Here in ...
dario ti Excellent, i was looking for something like that, but could be great if you add the option t...
DaxRider Thank U for ur sharing Vonasi
jandehaas Hello Vonasi, I tried it but it does not seem to work,any idea why ? Thanks,Jan defp...
dario ti Thank you!
Razz Hello Vonasi super indicator! is it possible to extend the indicator by the time scales M10 ...
Razz Hello Vonasi I found out myself how I can change it. Thanks again for the indicator
Balmora74 Thanks for this code but there is 4 different versions and i don't know wich is the good one ?
Vonasi I don't understand. There is only one ITF file here not four. Download and import it. You mi...
Balmora74 Ok i understand now... I make a confusion with a other code... Thanks Vonasi.
Vonasi There is another version of this indicator that can plot the same lines but onto an indicato...
Martin35 Hello Vonasi, do you think it is possible with PRT to code with the same principle as on thi...
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.
Nicolas Bene, perché no, trovi che sia affidabile a lungo termine?
Billy Ray Valentine Non saprei, che ne dici di provare?
Steffen Schmauch hello Nicolas, can I change the indicator that I only get the time of 8-9 clock displayed? a...
s00071609 How would it be possible to call the Last Support Price and the Resistance Price from strategy?
robertogozzi Replace RETURN with RETURN SupportPrice,ResistancePrice. When you CALL they will be returne...
s00071609 Great thank you
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 Peut-être à cause du manque d'historique. Celle-ci est utile pour limiter la quantité de ret...
s00071609 Would it be possible to use 2 or 3 points to do the calculations done in this case using zig...
Nicolas Sure, I suggest you open a new topic in the forum to discuss about your ideas.
TACBOLSA
1 year ago
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.
Gianluca ok i fixed it i hope is ok like this: //TAC trader zone 10.2 | indicator //01.01.2018 //R...
TAC Bolsa Hello try this new version or view the blog with the new indicators .. https://www.t...
TAC Bolsa Sorry, TAC Trader Zone V2 https://www.tiburonesdealetacorta.com/2018/11/indicador-tac-tr...
Nicolas No. This website is only dedicated to ProRealTime programming :)
lukapex Hello, can you please tell me what is the average in mm=average[mmPeriod] ? How is that calc...
Nicolas This is an SMA = Simple Moving Average
FULVIO09 Attualmente non c'è sufficiente volatilità : la condizione "C0 = AverageTrueRange[1500](Clos...
vlongobardo67 Ma io intendevo in backtest ! Scusa non l’ho menzionato.
ciniselloftse salve fulvio .il trading sistem e sempre profittevole?
DaxRider Thank you Supertiti for your contribution best wishes
cervantes2 Buenas tardes y gracias por este magnifico indicador. Queria saber si tienes un proscreener ...
cervantes2 Que busque los valores que la linea verde acaba de cruzar al alza o a la baja
Yannick Hello There is a mistake in trailing stop code, I think that this should fix the problem s...
Paul About the trailing-stop the way it's coded. That works for backtesting only, just look at th...
Jonny sorry paul, but system says that is not possible to put many stop order combined...what have...
Nicolas Sure,you can. Just add different variables in the loop and test them at each iteration if th...
BobFlynn Hello @Nicolas Thank you very much for this code ! It's very useful to me. I was wonder...
Nicolas Lines are just graphical and are not returned by the indicator. To use it in automated tradi...

Top