//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"