Indicators.Alligator()

Calculates the Alligator indicator and returns its value.
await Indicators.Alligator(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 methods. It can be any of Averaging enumeration values.
appliedPrice int Applied price. It can be any of AppliedPrice enumeration values.
priceType int Price type
mode int Data source, identifier of the indicator line. It can be any of the following values:
IndicatorLine.GatorJaw - Gator Jaw (blue) balance line,
IndicatorLine.GatorTeeth - Gator Teeth (red) balance line,
IndicatorLine.GatorLips - Gator Lips (green) balance line.

Return value

Numerical values of the Alligator indicator.

Example

let listAlligator = await Indicator.Alligator(null,0,13,8,8,5,5,3, Averaging.Smoothed, AppliedPrice.Median, PriceType.Bid, IndicatorLine.GatorJaw);