gator

forge.tafunctionSince Forge API 1
Functionpython
forge.ta.gator(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]

Gator oscillator: the gaps between the Alligator's lines, above and below 0.

Parameters

NameTypeDefault
highArrayLike
lowArrayLike
jaw_periodint13
jaw_shiftint8
teeth_periodint8
teeth_shiftint5
lips_periodint5
lips_shiftint3

Indicator: Gator oscillator

upper[i] = |jaw[i - (jaw_shift - teeth_shift)] - teeth[i]| and lower[i] = -|teeth[i - (teeth_shift - lips_shift)] - lips[i]|. The shifts are read only as these two backward offsets, so every value uses bars up to its own. The MetaTrader 5 input ordering is enforced: periods and shifts must both fall from jaw to teeth to lips, and each period must exceed its own shift.

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

How far apart the Alligator's jaw, teeth and lips are.

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

jaw, teeth and lips are the Alligator's smoothed averages of the median price.

upper = |jaw (jaw_shift - teeth_shift bars earlier) - teeth|

lower = -|teeth (teeth_shift - lips_shift bars earlier) - lips|

The periods and the shifts must both fall from jaw to teeth to lips, and each period must exceed its own shift.