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 | ColorZeroLAG MA

Real author:

MetaQuotes

The ZeroLAG MA indicator is a Moving Average with zero lag. This indicator was introduced in Technical Analysis of Stocks and Commodities magazine, April 2000.

Formula:

ZeroLAG MA(i) = 2*MA(Price, P1, i) - MA(MA( Price, P1, i), P2, i)

where:

  • MA — Moving Average;
  • Price — applied price;
  • P1 — period of Moving Average for first smoothing;
  • P2 — period of Moving Average for second smoothing.

Indicator uses the СMoving_Average class of the SmoothAlgorithms.mqh library. Working with that class was described in details in the article "Averaging Price Series for Intermediate Calculations Without Using Additional Buffers".

Originally this indicator has been written in MQL4 and was first published in the Code Base on 25.10.2006.

MetaTrader Experts, Indicators, Scripts and Libraries

Fig.1. The ColorZeroLAG_MA indicator

13175

Best MetaTrader Indicators + Profitable Expert Advisors