Gator Oscillator

Gator
Indicator

Bill WilliamsSeparate panelFree on ChartLabs

The Gator Oscillator is the gap between the Alligator's Jaw and Teeth above zero, and the gap between Teeth and Lips below zero.

Created by Bill Williams, 1998. Reviewed by the ChartLabs team, updated Nov 2026.

Example market1hIndicatorsAtlas AIGatorchartlabs.co/charts
Atlas reads it

GatorOscillator 1300.24

Pane

Atlas reads it

GatorOscillator 1300.24

Pane

Illustration on simulated data.

Gator OscillatorWhat is the Gator indicator?

The Gator Oscillator draws two columns from the Alligator lines. Above zero, the column is the distance between Jaw and Teeth. Below zero, the column is the distance between Teeth and Lips, drawn as a negative number. A distance of zero is written as 0, never as a negative zero. The first bar of both columns is 0.

A column is green only when its distance is strictly wider than the bar before. Otherwise it is red. The first bar is red, because there is no earlier distance to beat. The colours are #26a69a and #ef5350.

The defaults are Jaw length 13, Teeth length 8 and Lips length 5, on the median price. Those lengths are also the shifts: the Jaw is shifted by the Teeth length, the Teeth by the Lips length, and the Lips by a fixed 3 that is not a setting. These are the older Alligator lines, seeded with the first value. The Alligator indicator on the chart uses a different seed and its own offsets. The two differ on the early bars, and whenever the lengths leave 13, 8 and 5. Bill Williams describes the Gator in New Trading Dimensions (Wiley, 1998).

Not the Alligator's offset inputs

Jaw 13, Teeth 8 and Lips 5 are the averages. The shifts at those defaults are 8, 5 and a fixed 3. Changing Jaw length does not type in the offset 8.

First bar is red

Green needs a wider gap than the bar before. The first bar has no bar before it, so it is red, and both gaps are 0.

Gator signalsFive patterns to know.

1Inconclusive

Both gaps growing

Jaw against Teeth, and Teeth against Lips, are both wider than the bar before. Both columns are green.

2Inconclusive

Both gaps shrinking

Both distances are equal or smaller. Both columns are red.

3Inconclusive

Upper growing, lower shrinking

The Jaw-Teeth gap is widening while the Teeth-Lips gap is not.

4Inconclusive

Upper shrinking, lower growing

The lower gap is widening while the upper one is not.

5Inconclusive

Both at zero

The first bar, and any bar whose lines sit on top of each other, prints 0.

Gator formulaHow it is calculated.

Upper=|Jaw−Teeth|,Lower=−|Teeth−Lips|
STEP 1

Build the three lines

Smooth the median price with lengths 13, 8 and 5. Shift the Jaw by the Teeth length, the Teeth by the Lips length, and the Lips by a fixed 3.

STEP 2

Take the gaps

The upper column is the absolute gap between Jaw and Teeth. The lower column is the negative of the absolute gap between Teeth and Lips. A zero gap is 0.

STEP 3

Colour them

Green (#26a69a) only when the gap is strictly wider than the previous bar. Otherwise red (#ef5350). The first bar is red.

Gator settingsEvery setting, explained.

SettingDefaultRangeWhat it changes
Jaw length131 to 1,000The Jaw average, and the value the Signal lens changes. The Jaw is shifted by the Teeth length, not by a separate offset.
Teeth length (Jaw offset)81 to 1,000The Teeth average. It is also how many bars the Jaw is shifted.
Lips length (Teeth offset)51 to 1,000The Lips average. It is also how many bars the Teeth are shifted. The Lips themselves stay shifted by 3.
SourceMedian (HL/2)Median (HL/2)The price the three lines smooth. The default is the median, (high + low) / 2.
Columns#26a69a, #ef5350FixedGreen only when the gap grew. Otherwise red, including the first bar.
Setting
Jaw length
Default
13
Range
1 to 1,000
What it changes
The Jaw average, and the value the Signal lens changes. The Jaw is shifted by the Teeth length, not by a separate offset.
Setting
Teeth length (Jaw offset)
Default
8
Range
1 to 1,000
What it changes
The Teeth average. It is also how many bars the Jaw is shifted.
Setting
Lips length (Teeth offset)
Default
5
Range
1 to 1,000
What it changes
The Lips average. It is also how many bars the Teeth are shifted. The Lips themselves stay shifted by 3.
Setting
Source
Default
Median (HL/2)
Range
Median (HL/2)
What it changes
The price the three lines smooth. The default is the median, (high + low) / 2.
Setting
Columns
Default
#26a69a, #ef5350
Range
Fixed
What it changes
Green only when the gap grew. Otherwise red, including the first bar.
131 bars in the Jaw average
070,20866,82563,44360,06164,803.7

Drag to see how the setting changes the lines and how many signals you get. Illustration on simulated data.

Gator strategiesUse it in 3 setups.

Both sides awake

Whileboth columns are greenthe gaps are growing

Jaw, Teeth and Lips are moving apart. Traders often read that as the Alligator lines separating, and look at price for the direction.

Both sides asleep

Whileboth columns are redthe gaps are closing

The lines are drawing together or sitting still. A red pair says the gaps did not grow. It does not name the next break.

Ignore the first bars

Onthe early barsthe Gator and the Alligator can disagree

The Gator uses an older seed than the Alligator indicator. They differ at the start, and whenever the lengths leave 13, 8 and 5.

Test a rule in the Strategy TesterFree with 1 year of history. Past results do not guarantee future results.

Gator mistakesCommon mistakes.

Typing 8, 5 and 3 as the three inputs

The inputs are the lengths 13, 8 and 5. At those defaults the shifts work out to 8, 5 and a fixed 3. The 3 is not a setting, and it is not the Lips length.

Expecting the Alligator indicator to match bar for bar

The Alligator on the chart uses a different seed. The two differ on the early bars and whenever these lengths change.

Reading red as a sell

Red means the gap did not grow. Both columns can be red in a rally and in a selloff.

Gator combinationsPair it with these.

Gator FAQQuestions traders ask.

What are the Gator settings?

Jaw length 13, Teeth length 8, Lips length 5 and source median. The Lips shift is fixed at 3 and is not a setting.

Why is the first bar red and zero?

Both gaps start at 0, and green requires a gap strictly wider than the bar before. The first bar has nothing before it.

Are the inputs the offsets 8, 5 and 3?

No. The inputs are the average lengths 13, 8 and 5. The Jaw is shifted by the Teeth length, the Teeth by the Lips length, and the Lips by a fixed 3.

Why does it disagree with the Alligator indicator?

The Gator keeps an older first-value smooth. The Alligator indicator uses a different seed and its own offsets. They differ on the early bars, and whenever the lengths leave 13, 8 and 5.

What does green mean?

That column's gap is strictly wider than it was on the previous bar. Red means it was equal or narrower.

Can the lower column be positive?

No. It is drawn below zero. A gap of zero is written as 0 on either column.

Who created it?

Bill Williams, in New Trading Dimensions (Wiley, 1998).

Does it repaint?

No. A closed bar stays. The live bar moves until it closes, because the median price can still change.

Related indicatorsMore bill williams tools.

All bill williams indicators

Try Gator on a live chart.
Free. No download.

Works in your browser and on iPhone too.

Example market1h
Gator