3rd Generation Moving Average – indicator MetaTrader 4

The advanced version of the standard Moving Average indicator, which uses quite a simple procedure on decreasing temporal lag based on the increase of the Moving Average period. The method was firstly described by Manfred G. DΓΌrschner in his article Gleitende Durchschnitte 3.0 (in German). The presented implementation uses Ξ» = 2, which provides the best possible reduction of the lag. Higher Ξ» increases similarity with the classic moving average.

Input Parameters:

  • MA_Period (default = 50) β€” period of the resulting 3rd generation moving average.
  • MA_Method (default = 1) β€” moving average method (0 β€” SMA, 1 β€” EMA, 2 β€” SMMA, 3 β€” LWMA).
  • MA_Applied_Price (default = 5) β€” price type to calculate the moving average (0 β€” PRICE_CLOSE, 1 β€” PRICE_OPEN, 2 β€” PRICE_HIGH, 3 β€” PRICE_LOW, 4 β€” PRICE_MEDIAN, 5 β€” PRICE_TYPICAL, 6 β€” PRICE_WEIGHTED).

As you see, the 3rd Generation Moving Average (red line) offers slightly less lag than the conventional EMA (blue line) and reacts to the price changes faster. Unfortunately, it still has some delay and can give false signals. This indicator can be used just like a standard moving average – to determine the direction of the current trend.

Alternative:  JSON Parser - library MetaTrader 4


πŸ“ˆ ROBOTFX MetaTrader Expert Advisors and Indicators to maximize profits and minimize the risks