Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Indicator | XMA

Indicator XMA (Digital adaptive Moving Average) is a digital adaptive moving average XMA. It calculates the moving aberage using a digital filter.

It only changes the value of the moving average from bar to bar, if the new value is the step size (in points) higher than the previous one.

It has four configurable parameters:

  • Period - calculation period;
  • Price X step - price step in points;
  • Method - calculation method;
  • Applied price - price used for calculations.

Calculations:

If Abs(MA-PrevMA) >= Price X step:

XMA = MA

Otherwise:

XMA = PrevXMA

where:

MA - MA(Applied price, Period, Method)

MetaTrader Experts, Indicators, Scripts and Libraries

Fig.1 Price X step = 20

MetaTrader Experts, Indicators, Scripts and Libraries

Fig.2 Price X step = 60

21171

Best MetaTrader Indicators + Profitable Expert Advisors