IncStochasticOnArray - MetaTrader 5 Library - MT4/MT5 Resources

CStochasticOnArray class is designed for calculating stochastic on indicator buffer.
The method OnInit( ) function with the following parameters is called in the initialization( ) function:
The method OnCalculate() is called with the following parameters in the resolve() function:
Additional methods:
Test_StochasticOnArray.mq5 is a sample indicator showing the usage of CStochasticOnArray class. The IncStochasticOnArray file must be placed in MQL5\Include\IncOnArray in the terminal's data folder (the IncOnArray folder must be created).
The CMAOnArray class in the IncMAOnArray file is required to work properly. Can be found here .
This Stochastic Oscillator technical indicator compares a security's closing price over a given time period in relation to its price range. The stochastic oscillator is shown as two lines.

Attachment download
📎 incmaonarray.mqh (5.07 KB)
📎 incstochasticonarray.mqh (4.33 KB)
📎 test_stochasticonarray.mq5 (3.09 KB)
Source: MQL5 #629
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •