CMAOnArray class is designed for Moving Average calculation on indicator buffer's data.
Init() method with the following parameters is called in the OnInit() function of the indicator:
Solve() method with the following parameters is called in the OnCalculate() function of the indicator:
Test_MAOnArray.mq5 is a sample indicator showing CMAOnArray class application. IncMAOnArray file must be located in MQL5\Include\IncOnArray of the terminal data folder (IncOnArray folder must be created).
The Moving Average Technical Indicator shows the mean instrument price value for a certain period of time. When one calculates the moving average, one averages out the instrument price for this time period. As the price changes, its moving average either increases, or decreases.
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/623
Vertical time grid with one month step.JFatl HTF Baby
The hybrid of digital and analog filters that displays larger timeframe values at a smaller one in a minimized way.