MQL4 Reference Technical Indicators iStochastic
iStochasticCalculates the Stochastic Oscillator and returns its value.
Parameters symbol [in] Symbol name on the data of which the indicator will be calculated. NULL means the current symbol. timeframe [in] Timeframe. It can be any of ENUM_TIMEFRAMES enumeration values. 0 means the current chart timeframe. Kperiod [in] Period of the %K line. Dperiod [in] Period of the %D line. slowing [in] Slowing value. method [in] Moving Average method. It can be any of ENUM_MA_METHOD enumeration values. price_field [in] Price field parameter. Can be one of this values: 0 - Low/High or 1 - Close/Close. mode [in] Indicator line index. It can be any of the Indicators line identifiers enumeration value (0 - MODE_MAIN, 1 - MODE_SIGNAL). shift [in] Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago). Returned value Numerical value of the Stochastic Oscillator. Example:
|