alligator

forge.tafunctionSince Forge API 1
Functionpython
forge.ta.alligator(high: ArrayLike,low: ArrayLike,jaw_period: int = 13,jaw_shift: int = 8,teeth_period: int = 8,teeth_shift: int = 5,lips_period: int = 5,lips_shift: int = 3) -> dict[str, np.ndarray]

Bill Williams' Alligator: jaw, teeth and lips.

Parameters

NameTypeDefault
highArrayLike
lowArrayLike
jaw_periodint13
jaw_shiftint8
teeth_periodint8
teeth_shiftint5
lips_periodint5
lips_shiftint3

Indicator: Alligator

Each is the smoothed average (rma) of the median price over its own period. The three shifts only say how far the chart draws each line ahead; the values are not displaced.

Classpython
forge.ta.Alligator(**inputs: Any) -> None

Three smoothed lines that show when a trend is asleep or waking up.

Inputs

NameTypeDefaultRange
jaw_periodint131 to 5000
jaw_shiftint80 to 100
teeth_periodint81 to 5000
teeth_shiftint50 to 100
lips_periodint51 to 5000
lips_shiftint30 to 100

median = (high + low) / 2

jaw, teeth and lips are smoothed averages of the median over their own periods: the first value is the mean of the first period values, then (previous * (period - 1) + median) / period.

The shifts are how far the chart draws each line ahead. The values are not displaced.