The zero lag exponential moving average (ZLEMA) is a technical indicator within technical analysis that aims is to eliminate the inherent lag associated to all trend following indicators which average a price over time. As is the case with the double exponential moving average (DEMA) and the triple exponential moving average (TEMA) this indicator aims to reduce the lag.
The indicator was created by John Ehlers and Ric Way around 2010.[1]
The formula for a given N-Day period and for a given data series is:[2] [3]
\begin{align} it{Lag}&=
Period-1 | |
2 |
\\ it{EmaData}&=it{Data}+(it{Data}-it{Data}(Lagdaysago))\\ it{ZLEMA}&=it{EMA}(it{EmaData},it{Period}) \end{align}
The idea is do a regular exponential moving average (EMA) calculation but on a de-lagged data instead of doing it on the regular data. Data is de-lagged by removing the data from "lag" days ago thus removing (or attempting to) the cumulative effect of the moving average.