Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

IncStochasticOnArray - MetaTrader 5 Library - MT4/MT5 Resources

author EAcpu | 3 reads | 0 comments |

IncStochasticOnArray - library for MetaTrader 5

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.

IncStochasticOnArray - library for MetaTrader 5


Attachment download

📎 incmaonarray.mqh (5.07 KB)

📎 incstochasticonarray.mqh (4.33 KB)

📎 test_stochasticonarray.mq5 (3.09 KB)

Source: MQL5 #629

Verification code Refresh