IncADXOnArray – library MetaTrader 5

Example of use of CADXOnArray class
CADXOnArray class is designed for calculation of ADX (Average Directional Movement Index) values on indicator buffers. Usage: Init() method with the following parameters is called in the OnInit() function: int aPeriod – indicator period. ENUM_MA_METHOD aMethod – smoothing method. Solve() method with the following parameters is called in the OnCalculate() function: const int aRatesTotal –