ZeroLag MACD

ZeroLag MACD

Here is the traditionnal MACD (Moving Average Convergence Divergence) indicator made with the “zero lag” calculation process.

The default values are : 26 (long) , 12 (short) and 9 for the signal line.

 

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. smnjnssn • 10/26/2015 #

    Hi.
    Can you please describe how you set the colors as in the attached screenshot? Thanks.

    • Nicolas • 10/26/2015 #

      Just set the two colors of the ‘SignalMACD’ curve in the indicator properties window.

    • sam00075 • 361 days ago #

      Hi Nicolas, can you please upload a version with TEMA, so those who don’t know how to code can download the .itf ? Thanks

    • Nicolas • 361 days ago #

      Use the MACD code here: https://www.prorealcode.com/topic/standard-prt-code-for-macd/#post-189640
      and change exponentialaverage with TEMA
      see instruction: https://www.prorealcode.com/documentation/tema/

  2. Lasse • 10/26/2015 #

    Hi Nicolas,
    When applying these codes for MACD zero lag above I don’t get the same result as the stadard MACD zero lag indicator embedded in the system, please see picture attached. Do you know what I am doing wrong? For this example I am using standard periods – 12/26/9. I am looking for the codes for MACD zero lag indicator in order to use it in the proscreener. thanks.

    • Nicolas • 10/26/2015 #

      Hi Lasse, because MACD is a line and not an histogram for the indicator embedded in the platform.

  3. Lasse • 10/26/2015 #

    ok, but even though I look at the line and compare it with the histogram in the default indicator it is still not the same result – …not really sure what you mean. What I am looking for, is a coding for the MACD Zero lag indicator in order to apply it as part of my proscreenings. Could you please post the link to the indicator codings if it’s available? thanks.

  4. Doctrading • 10/26/2015 #

    Hello,
    Here is a code with the same result as default indicator : 
     
    // MACD ZERO LAG
    // p= variable macd zerolag : 12 par défaut
    // q= variable signal : 26 par défaut
    // r= variable macd - signal : 9 par défaut // mettre histogramme

    p = 12
    q = 26
    r = 9

    z1=DEMA[p](close)
    z2 =dema[q](close)
    e= z1 - z2
    z3=DEMA[r](e)
    f=z3
    g=e-f

    return e AS \"MACD ZEROLAG\",f AS \"signal\",g as \"macd-signal\",0 as \"zero\"

     
    Best regards,

  5. absent1980 • 10/26/2015 #

    Hi, 
    How to build this into the system as a condition such as: “IF MACDZeroLag > MACDZeroLag[1] THEN …” When i call for this indicator probuilder shows an error because only one value out of three is used.
    Thanks

  6. ginko • 10/26/2015 #

    There are 2 versions of the MACD (almost) Zero Lag in the same Article introducing Zero-Lag MACD, (Patrick G. Mulloy), “Smoothing Data With Less Lag” article in TASC (Technical Analysis of Stock and Commodities) V12.2 pages 72-80.
    One version is indeed using a DEMA as shown in the code above, the second version in the article used a TEMA instead.
    Only the DEMA version is implemented in ProrealTime.
    The TEMA is faster (and has even less lag),
    BTW: Both versions are not truly zero-lag, but are “almost” zero-lag.
    Patrick Murphy stated that “Comparing the MACDs for TEMA1 with DEMA1” … “The DEMA1 MACD had two fewer trades, approximately a
    20% improvement in overall profit, and one fewer drawdown.”
    But he stated that with other period parameters, TEMA version was way better and showed a 50% improvement in overall profit vs the DEMA version. Please refer to the article for more clues.

    • Nicolas • 10/26/2015 #

      The TEMA instruction is available, so that’s easy to make an MACD with it. https://www.prorealcode.com/documentation/tema/

  7. Romina • 10/26/2015 #

    Buenas tardes Nicolás,
    Estoy intenando configurar este indicador MACD Retraso 0, y no se que debo poner en “defina la siguiente variable: EMAshort1.
    Espero sus noticias. Muchas gracias

  8. Alai-n • 307 days ago #

    Afin d’avoir l’Histogramme Macd il faut rajouter ligne18 : HistogrammeMacd = ZeroLagMACD – SignalMACD (et dans le) Return HistogrammeMacd as “HistogrammeMacd”(ligne19)

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
Bateson
5 months ago
MACD Reloaded
MACD Reloaded
2
Indicators
NEOMKEY Nada nuevo
Carlose I love your version of the MACD, if you use it you can get a lot of use out of it, for me ma...
Matriciel Very nice job ! Is it possible to do the opposite because what interests me is to have the ...
YvesRobert Hi Matriciel, how can we do this, because stochastic is limited between 0 and 100 but price ...
Traderfox06 Dear zeiiermantrading, I really like your approach combining adaptive averages with MACD in...
jacquesgermain Hello IASD it's normal , when this occurs, uncheck RSI and MFI line and click then the MAC...
emiliobercial Thank you very much for sharing!
Carlose estoy de acuerdo con IASD Esta muy bien el MAD y el indicador en el precio no se ven bien...
Gianluca Amazing, thank You for your contribution!
Alex Spioglou Thank you for featuring my work, and I hope you found it useful. Mind the paper was publ...
Nicolas
2 years ago
DELBERT Bonsoir , Nicolas , j'ai transféré votre indicateur sur ma PRT 10,3 et j'ai un méssage d'ére...
Nicolas Vous pouvez essayer en remplacant la ligne avec: vwapsd = sqrt(average[lengthz](square(clo...
DELBERT Bonsoir , merci Nicolas , a bientôt .
poldoposta si potrebbe trovare una soluzione per sovrapporlo al prezzo?
robertogozzi Basta che tu clicchi sull'etichetta (tag) PREZZO del grafico (appena sotto l'angolo in alto ...
Nicolas Merci d'ouvrir un sujet dans le forum des screeners en respectant les règles de publication ...
Pensera Bravo Nicolas ! Tu es en quelque sorte l’inventeur de Metascore…(oups je viens de lire jusqu...
Nicolas Dans un but d'investissement pure, et non spéculatif.
larouedegann It doesn't work
ggolfet it seems it's not working on prorealtime 11. I changed MACDSignal to MACDSign in order to av...
juanj Please note that the indicator is meant for PRT 10.3
stephane2.0
4 years ago
stephane2.0 c=exponentialaverage[9](MACDLine[12,26,9](close))
Forexcheckup Hi I down loaded the ITF file, it paints red for a down trend but for all up trends the can...
stephane2.0 line 22: r = 195 by r = 0 line 23: g = 195 by g = 0 line 24: b = 195 by b = 255 ;)
phanz Hi ... what are the conditions for buy signal using this indicator? Tks
JJ Tec Hola Las condiciones de entrada / salida vienen en el libro de J. Carter Mastering the trad...
Pixeldd Ich bekomme beim einfügen des Indikators einen Fehler angezeigt. Was bitte muss ich genau än...
Gianluca THANK YOU!!!!!
JOSEBA que relaccion tiene la numeración de las barras del 1 al 10 que tiene cada número Tengo dos...
marcov66 Hi, it seems a very useful indicator. Unfortunately the link here for the full explanation d...
TACBOLSA Discontinued indicator. we are sorry.
Azzuerus Bonjour, je teste et j'utilise vos indicateurs depuis plusieurs années, et ils me sont dev...
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'...
Daniel Martin Hi do you know how have and entry after the second cross? There is crosses below 0 and cross...
jpm380 Merci pour ce super indicateur. Comment puis-je mettre une alerte dès changement dès croisem...
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...
MJZTrader Good morning! I was trying to tweek the code in the way as to set it for intraday (1 Min to ...
GUCCI ONE Bonjour, Nicolas. Pourriez-vous m'aider à transformer cet indicateur en screener, svp ? Merci
Nicolas disponible ici: https://www.prorealcode.com/topic/divergences-screener/
julien1978 hello to all, i recently discovered this indicator. would it be possible to add the detectio...
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...

Top