Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Indicator | ZeroLagEMA

Zero-Lag Exponential Moving Average indicator is an exponential moving average with the minimum delay.

It has two configurable parameters:

  • Period - calculation period
  • Applied price

Calculation:

ZeroLagEMA = Alpha * (2.0*AppliedPrice-LagAppliedPrice) + (1.0-Alpha) * PrevZeroLagEMA

where:

Alpha = 2.0 / (Period+1)
Lag = Ceil((Period-1)/2.0)
LagAppliedPrice - AppliedPrice on Lag bar

MetaTrader Experts, Indicators, Scripts and Libraries

22439