Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2015.07.02 15:06

ColorZeroLAG_MA - indicator for MetaTrader 5

| English Русский 中文 Español Deutsch 日本語 Português

votes: 15

Real author:


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.


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


  • 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.

Fig.1. The ColorZeroLAG_MA indicator

Fig.1. The ColorZeroLAG_MA indicator

Translated from Russian by MetaQuotes Software Corp.
Original code:

CoppockHist_HTF CoppockHist_HTF

The CoppockHist indicator with the timeframe selection option available in the input parameters.

CoppockHist CoppockHist

Colored histogram based on a famous indicator by Edward Coppock.


The ColorZeroLAG_MA indicator with the timeframe selection option available in the input parameters.


The indicator determines and marks WRB (Wide Range Bars or Wide Range Bodies).