Attachments forums

List of attachments posted on this forum.


All files on forums: 160545

Re: MT5 Moving Averages (MAs)

ionone, Fri Jan 31, 2025 8:44 pm

this MA is great !
the logic of it is quite powerful

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.

https://www.mql5.com/en/code/55327
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.
All files in topic