CStochasticOnArray class is designed for calculation of Stochastic on indicator buffers.
Init() method with the following parameters is called in the OnInit() function:
Solve() method with the following parameters is called in the OnCalculate() function:
Test_StochasticOnArray.mq5 is a sample indicator showing CStochasticOnArray class usage. IncStochasticOnArray file must be placed to MQL5\Include\IncOnArray of the terminal data folder (IncOnArray folder must be created).
CMAOnArray class from the IncMAOnArray file is needed for the proper work. It can be found here.
The Stochastic Oscillator Technical Indicator compares where a security’s price closed relative to its price range over a given time period. The Stochastic Oscillator is displayed as two lines.
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/629
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.