Zero Lag is a modified EMA.
Calculation formula:
EMA ZL = α * (EMA + Gain * (Close - ZL [1])) + (1 - α) * ZL [1]
The formula is similar to EMA with an addition of a new value Gain * (Close - ZL [1])
Gain is the value selected from the interval [-GainLimit, GainLimit] to minimize the error for the current data sample (Close - ZL) → min
The indicator has three input parameters:

Tradotto dal russo da MetaQuotes Ltd.
Codice originale https://www.mql5.com/ru/code/19896
ZeroLagMACD
ZeroLagMACD is an MACD version, which has a much smaller lag compared to the classic MACD.
Diff_TF_MA_EA
An Expert Advisor based on the Diff_TF_MA indicator.