Hello the community,
is there an .itf for the MACD Zero Lag using TEMA ?
This one created by Nicolas is working great, would just be better to have both versions.
ZeroLag MACD
Thanks
I’ve seen the link before posting, and there’s another person asking the same question.
How to replace it ?
Explanations not clear.
JSParticipant
Senior
With the “zero lag” calculation, EMAs are already used and when you replace these EMAs with TEMA’s you get a calculation that makes no sense…
JSParticipant
Senior
I converted the MACD Zero Lag indicator to TEMA’s…
Again, I personally think this calculation makes no sense…
//Long=26
//Short=12
//Signal=9
TEMAshort1 = TEMA[short](close)
TEMAshort2 = TEMA[short](TEMAshort1)
DifferenceShort = TEMAshort1 - TEMAshort2
ZeroLagShort = TEMAshort1 + DifferenceShort
TEMAlong1 = TEMA[long](close)
TEMAlong2 = TEMA[long](TEMAlong1)
DifferenceLong = TEMAlong1 - TEMAlong2
ZeroLagLong = TEMAlong1 + DifferenceLong
ZeroLagMACD = ZeroLagShort - ZeroLagLong
signal1=TEMA[signal](ZEROLAGMACD)
signal2=TEMA[signal](signal1)
DIFFERENCE2=signal1-signal2
SignalMACD=signal1+DIFFERENCE2
Difference=ZeroLagMACD-SignalMACD
RETURN ZeroLagMACD as "Zero Lag MACD" Coloured("Blue"), SignalMACD as "Signal MACD" Coloured("Red"), Difference as "Difference between ZLLine - ZLSignal"