IncMAOnArray – library MetaTrader 5

Example of use of CMAOnArray class
CMAOnArray class is designed for Moving Average calculation on indicator buffer’s data. Usage: Init() method with the following parameters is called in the OnInit() function of the indicator: int aMAPeriod – MA period. ENUM_MA_METHOD aMAMethod – МА calculation method. Solve() method with the following parameters is called in the OnCalculate() function of the indicator: const