ZeroLag MACD Divergence Signals

v10.3
ZeroLag MACD Divergence Signals

This is another spin of the classic MACD divergence indicator except we use a zero lag MACD and also consider the immediate price action to filter for stronger signals.

The only adjustable parameter is the lookback period to consider for calculating the divergence between price and the MACD crossover.

Note that the indicator only loads 5000 bars per default in order to load faster but this can easily be changed in the code if required.

 

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. Violet • 192 days ago #

    Is there perhaps a problem with the code?
    It doesn’t work, at least not on my PRT version 11

  2. Stenozar • 192 days ago #

    Hi Juanj e thanks for your indicator; do you suggest any timeframe for a better use of it? thanks

  3. larouedegann • 192 days ago #

    It doesn’t work

  4. ggolfet • 133 days ago #

    it seems it’s not working on prorealtime 11. I changed MACDSignal to MACDSign in order to avoid running errors. However the indicator does not print anything. Any info for fixing this issue? thanks

  5. juanj • 115 days ago #

    Please note that the indicator is meant for PRT 10.3

avatar
Register or

Likes

avatar avatar avatar avatar
Related users ' posts
juanj Possible interpretation: Indicator tags 80 = Start of bullish trend, tags 20 = Start of bear...
Yann LB Bonjour, Ajout de as "level 95" en toute fin de code. ;-)
stephane2.0
10 months ago
cfta Thanks for sharing, this may be a useful filter but I'm not sure if it's coded correctly sin...
stephane2.0 Yes, line 5 is truncated. I can't edit, please replace by:
stephane2.0 c=exponentialaverage[9](MACDLine[12,26,9](close))
Morrissey38 Buenas tardes Nicolás . Como podría introducir una línea cero a este indicador? . Muchas gra...
Nicolas Change the last line with : RETURN Reflex, 0
Morrissey38 Muchísimas gracias Nicolás , muy amable.
mauro1966 BRAVO....
JackD I am getting a Syntex error when entering the code
MadBat How do you get this to work in PRT v11 ?
Gianluca THANK YOU!!!!!
JOSEBA que relaccion tiene la numeraci√≥n de las barras del 1 al 10 que tiene cada n√ļmero Tengo dos...
TAC Bolsa Thank you, Jan Any modification is good reference if it helps us win in the market.
marcov66 Hi, it seems a very useful indicator. Unfortunately the link here for the full explanation d...
TACBOLSA Discontinued indicator. we are sorry.
FREDNC adx[14]>adxmin and adx[14] > adxr[14] and adx[14]>adxmin and adx[14] DIminus[3](clo...
Janfi Hello, I'm new to ProRealCode and I do not understand the following summation[n](indicator...
Kaci It seems he's just checking that the previous MACD is < 0 for maximum one period ? I'...
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. ...
jpm380 Merci pour ce super indicateur. Comment puis-je mettre une alerte dès changement dès croisem...
berga Hi, thank you very much for this very useful screener. I would like to get another very clos...
leoulve Hello, I uploaded correctly the screener and it is not selecting any. Is it normal? cheers
Oliviertrader2020 Hello, where do you find the ZeroLagMACDWeek indicator? You only posted the mtf-macd-diverge...
Nicolas Thanks a lot for this new valuable addition to our library. I changed line 76 with "barindex...
Horance Thanks. I've noticed this leftover after submission, but it was too late for editing. BTW, I...
Etienne Thanks Horance for porting this code to PRT. I would like to bring some speedup to your cod...
pacorapvalle Gracias por el indicador y me uno a los que han preguntado si hay algun screener.
Jose7674 Intentaré poner el screener está semana
Lily Rios Excelente trabajo Jose, existe alg√ļn screener para este indicador?
Xusto Hello, Fully Agree, I will update it with your advice. Btw Can would you like share you co...
Niklas johansson hägglund do you now if it's possible to use this strategy with this code in tradingview also?
Alexander9 This code for metastock ?, can for amibroker . Thanks
AGTrader Interesante, muy visual Doc. Felicidades!!!
Andraxx simplemente impresionante Dom...te sigo en youtube. Me ha gustado tu canal. Gracias por comp...
mangiaragni Buongiorno io non riesco a visualizzare nessun tipo di volume , mi torna sempre una linea dr...
Nicolas Assicurati che lo strumento che stai guardando abbia dei volumi! √ą il caso?
Toto le Heros Thanks Nicolas. I read somewhere that in the calculation, we should round the value of the A...
Nicolas aADX = round(adx[10])
ak5hay2 Works like crazy on bitcoin. Use different timeframes. Thanks a lot Doc!!!
richyowen Hi, great code thanks. Very new to this forum. Is there a way to add a 100point target on an...
lisamitch50 Morning all, Just backtested on quite a few instruments, worked well on backtesting, but tel...

Top