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

2016.02.08 11:06
3rd Generation Moving Average

3rd Generation Moving Average - indicator for MetaTrader 4

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

Views:
4974
Rating:
votes: 13
3rdgenma.mq4 (3.45 KB)view

Description:

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.

Image:

Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/13139

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

Average Directional Movement Index (ADX) Average Directional Movement Index (ADX)

The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.

LinesProfitLoss LinesProfitLoss

Calculates profit (loss) of the current orders on the symbol.

FFC - Forex Factory Calendar FFC - Forex Factory Calendar

Modified version of FF Calendar Indicator with new features.