Indicators.Gator()

Calculates the Gator oscillator and returns its value.
await Indicators.Gator(symbol:string, timeframe:string, jawPeriod:int, jawShift:int, teethPeriod:int, teethShift:int, lipsPeriod:int, lipsShift:int, maMethod:int, appliedPrice: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.
jawPeriod int Blue line averaging period (Alligator's Jaw).
jawShift int Blue line shift relative to the chart.
teethPeriod int Red line averaging period (Alligator's Teeth).
teethShift int Red line shift relative to the chart.
lipsPeriod int Green line averaging period (Alligator's Lips).
lipsShift int Green line shift relative to the chart.
maMethod int MA method. It can be any of Moving Average method enumeration value.
appliedPrice int Applied price. It can be any of Applied price enumeration values.
priceType int Price type
mode int Indicator line index. It can be any of Indicators line identifiers enumeration value.
IndicatorLine.Upper - upper histogram,
IndicatorLine.Lower - lower histogram.

Return value

Numerical values of the Gator oscillator.

Example

let list = await Indicator.Gator(null, 0, 13, 8, 8, 5, 5, 3, Averaging.Smoothed, AppliedPrice.Median, IndicatorLine.Upper, PriceType.Bid);
let listGatorUpper = list[IndicatorLine.Upper];