Avg_MA – indicator MetaTrader 5

Average from MA indicator calculates the average value from the specified number of moving averages, whose periods are calculated as an increment to the base МА period

It has six input parameters:

  • First MA period – МА calculation base period
  • Method – МА calculation method
  • Applied price – МА calculation price
  • Count – number of calculated МАs
  • Coefficient of increment – increment ratio of calculated MA periods
  • Incremental method – increment method
    • Addition
    • Multiplication

Example of calculation with values:

First MA period = 5
Coefficient of increment = 2
Count = 5

  • If Incremental method = Addition:
    AvgMA=(MA(5)+MA(7)+MA(9)+MA(11)+MA(13))/5
  • If Incremental method=Multiplication:
    AvgMA=(MA(5)+MA(10)+MA(20)+MA(40)+MA(80))/5

where:

MA – MovingAverage(Applied price,Method) with calculated period


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

Alternative:  Copy Objects - script MetaTrader 4
πŸ“ˆ ROBOTFX MetaTrader Expert Advisors and Indicators to maximize profits and minimize the risks