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

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

author EAcpu | 5 reads | 0 comments |

XXMA - indicator for MetaTrader 5

Real author:

axlust and vining

Digital Adaptive Moving Average XXMA represents a subtype of moving average with a digital flat trend filter, used to separate the angular direction of price movements (trend) from the horizontal (flat) direction for effective trend trading.

As you can see in the figure, during trend movements in price the XXMA line stays above or below the price chart, constantly changing its meaning and drawing border lines, while during horizontal movements (flat) it remains in a fixed position. The signal to enter a trade is a close above or below the sloping indicator line, while the signal to close a trade is the indicator line crossing horizontally or closing on the opposite side.

The indicator was first implemented in MQL4 and published in the code base on August 17, 2009.

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.

XXMA - indicator for MetaTrader 5

Figure 1 XXMA indicator


Attachment download

📎 smoothalgorithms.mqh (133.8 KB)

📎xxma.mq5 (7.22 KB)

Source: MQL5 #1271

Verification code Refresh