xMASumAvg – indicator MetaTrader 5

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)

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


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


https://www.mql5.com/ru/code/22418

πŸ“ˆ ROBOTFX MetaTrader Expert Advisors and Indicators to maximize profits and minimize the risks