Indicators.Stochastic()

Calculates the Stochastic Oscillator and returns its value.
await Indicators.Stochastic(symbol:string, timeframe:string, KPeriod:int, DPeriod:int, Slowing:int, method:int, priceField:int, priceType:int, mode:int)

Parameters

Name Type Действие Значение по умолчанию
symbol string Symbol name on the data of which the indicator will be calculated. null means the current symbol.
timeframe string TimeFrame. It can be any of TimeFrame enumeration values. 0 means the current chart timeframe.
KPeriod int Period of the %K line.
DPeriod int Period of the %D line.
Slowing int Slowing value.
method int Moving Average method. It can be any of Averaging enumeration values.
priceField int Price field parameter. Can be one of this values: 0 - Low/High or 1 - Close/Close.
priceType int Price type
mode int Indicator line index. It can be any of the Indicators line identifiers enumeration value IndicatorLine.

Return value

Numerical values of the Stochastic Oscillator.

Example

let list = await Indicator.Stochastic(null, 0, 5, 3, 3, Averaging.Simple, 0, PriceType.Bid);
let listMain = list[IndicatorLine.Main];