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
The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.Average Directional Movement Index (ADX)
The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.