3rd Generation Moving Average

3rd Generation Moving Average is an advanced version of the standard moving average (MA) indicator for MetaTrader. It implements a rather simple lag-reducing procedure based on the longer MA period. The method was first described by M. Duerschner in his article Gleitende Durchschnitte 3.0 (in German). The presented version uses λ = 2, which provides the best possible lag-reducing. Higher λ increases similarity with the classic moving average. The indicator is available for both MT4 and MT5. It does not require using any DLL.

Input parameters

  • MA_Period (default = 50) — a period of the 3rd generation moving average.
  • MA_Sampling_Period (default = 220) — a sampling period of the 3rd generation moving average. Should be at least 4 times greater than MA_Period.
  • MA_Method (default = MODE_EMA) — method of the moving average.
  • MA_Applied_Price (default = PRICE_TYPICAL) — applied price for the moving average.
3rd Generation Moving Average Indicator Example MetaTrader Chart

As you see, the 3rd Generation MA (red line) offers slightly less lag than the conventional EMA (blue line) and reacts to the price changes faster. Unfortunately, it is still prone to lag and may produce false signals. You can use the 3rd Generation Moving Average Forex indicator the same as the standard moving average — to detect the current trend direction.

This indicator is used for trading in the Adjustable MA 3G expert advisor for MetaTrader.

Downloads (ver. 1.04, 2017-03-15)

3rd Generation Moving Average for MetaTrader 4 in .mq4

3rd Generation Moving Average for MetaTrader 4 in .zip

3rd Generation Moving Average for MetaTrader 5 in .mq5

3rd Generation Moving Average for MetaTrader 5 in .zip


Warning! If you do not know how to install this indicator, please read the MetaTrader Indicators Tutorial.

Do you have any suggestions or questions regarding this indicator? You can always discuss 3rd Generation Moving Average with the other traders and MQL programmers on the indicators forums.

© 2005–2022


Design — Mart Studio

Forex trading bears intrinsic risks of loss. You must understand that Forex trading, while potentially profitable, can make you lose your money. Never trade with the money that you cannot afford to lose! Trading with leverage can wipe your account even faster.

CFDs are leveraged products and as such loses may be more than the initial invested capital. Trading in CFDs carry a high level of risk thus may not be appropriate for all investors.