Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

X2MA NRTR - MetaTrader 5 Script | Forex Indicator Download - MT4/MT5 Resources

author EAcpu | 3 reads | 0 comments |

X2MA NRTR - indicator for MetaTrader 5

In this indicator, the value of the moving average is corrected with the help of the following formula: NRTR algorithm (Nick Rypock Trailing Reverse).

The expert advisor Godzilla placed third in the 2006 Automated Trading Championship based on a breakout trading system developed using readings from this indicator.

The smoothing algorithm can be chosen from ten possible versions:

It should be noted that the Phase1 and Phase2 parameters have completely different meanings for different smoothing algorithms. For JMA, it is an external phase variable that varies from -100 to +100. For T3, it is the smoothed ratio multiplied by 100 for better visualization; for VIDYA, it is the CMO oscillation period; for AMA, it is the slow EMA period. In other algorithms, these parameters do not affect smoothing. For AMA the fast EMA period is a fixed value, equal to 2 by default. For AMA, the ratio of raised powers is also equal to 2.

The indicator uses the SmoothAlgorithms.mqh library class (must be copied to terminal_data_folder\MQL5\Include). The use of the class "Average price series for intermediate calculations without using additional buffers" is described in detail in the article.

X2MA NRTR - indicator for MetaTrader 5

Indicator input parameters:


Attachment download

📎 smoothalgorithms.mqh (133.8 KB)

📎 x2ma_nrtr.mq5 (9.83 KB)

Source: MQL5 #573

Verification code Refresh