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 | xMASumAvg

X MA Sum Average is an average of moving averages. In other words, it provides the average value of multiple moving averages with the period within the range from X to N

It has four inputs:

  • Initial period - МА range initial period
  • End period - МА range end period
  • Method - МА calculation method
  • Applied price - МА calculation price

Calculation:

XMA = (MA[Initial period] + MA[Initial period+1] + .... + MA[End period] ) / (End period-Initial period+1)

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 1. X MA Sum Average with the default range of periods: 20 - 100

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 2. X MA Sum Average with the range of periods: 1- 50

22418