Alligator

alligatorbill_williamsForge API 1

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

Outputs

NameTypeRequiredDescription
jawvalueOptionalcolor theme.series_b, shift 8, style line, width 1
teethvalueOptionalcolor theme.down, shift 5, style line, width 1
lipsvalueOptionalcolor theme.up, shift 3, style line, width 1
Warm-up
max(jaw_period, teeth_period, lips_period) - 1 bars (12 at the defaults)
Repaints
No
Parity
MetaTrader 5, within 1e-12

Formula

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.