Williams Alligator

Alligator
Indicator

Bill WilliamsOn the price chartFree on ChartLabs

Williams Alligator is three smoothed averages of the median price, drawn ahead: Jaw, Teeth and Lips. They show a quiet market and a trending one.

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

Example market1hIndicatorsAtlas AIAlligatorchartlabs.co/charts
Atlas reads it

The three lines are tangled or stacked the other way.

Jaw 69,486.3

Atlas reads it

The three lines are tangled or stacked the other way.

Jaw 69,486.3

Illustration on simulated data.

Williams AlligatorWhat is the Alligator indicator?

The Alligator draws three lines on the price chart. The Jaw is blue (#2962FF), the Teeth pink (#E91E63) and the Lips green (#66BB6A). Each is a smoothed average of the median price, (high + low) / 2, and each is drawn shifted to the right.

The defaults are Jaw 13 shifted 8 bars, Teeth 8 shifted 5, and Lips 5 shifted 3. The smoothing is Wilder's: each line starts from the simple average of its first values, then each new bar counts as 1/n of the line. The shift is only where the line is drawn. The calculation itself is not moved.

When the three lines twist together, Williams called the Alligator asleep. When they separate and stack, Lips, Teeth, then Jaw in the direction of the move, he called it eating. The lines have no level marks.

Shifted, not predicted

A line drawn 8 bars to the right is still the average of past median prices. The empty space ahead of the last bar is the offset, not a forecast.

Median only

There is no source input. Every line uses (high + low) / 2.

Alligator signalsFive patterns to know.

1Inconclusive

Lines tangled

Jaw, Teeth and Lips sit on top of each other. The averages agree, so the recent median price has gone nowhere.

2Bullish

Lines stacked and apart

Price, Lips, Teeth and Jaw line up in that order. The short average is leading the longer ones.

3Inconclusive

Price crosses the Lips

The close moves through the fastest line. It is the first of the three to react.

4Bullish lean

Lips cross the Teeth

The 5-bar line moves through the 8-bar line. The short average has changed side.

5Inconclusive

Cross and cross back

Price weaves through the Lips. The lines stay tangled and the shifts make each cross late.

Alligator formulaHow it is calculated.

Jaw=SMMA13(median), shift 8Teeth=SMMA8(median), shift 5Lips=SMMA5(median), shift 3
STEP 1

Median price

On each bar take (high + low) / 2.

STEP 2

Smooth three ways

Build a smoothed average of length 13, one of 8 and one of 5. Each starts as the simple average of its first values.

STEP 3

Shift the drawing

Draw the Jaw 8 bars to the right, the Teeth 5 and the Lips 3. The numbers in the columns stay where they were calculated.

Alligator settingsEvery setting, explained.

SettingDefaultRangeWhat it changes
Jaw Length131 to 1,000The slowest line. Longer keeps it further from price.
Teeth Length81 to 1,000The middle line.
Lips Length51 to 1,000The fastest line. The Signal lens on this page changes the Jaw only.
Jaw Offset8-500 to 500How many bars to the right the Jaw is drawn.
Teeth Offset5-500 to 500How many bars to the right the Teeth are drawn.
Lips Offset3-500 to 500How many bars to the right the Lips are drawn.
LinesJaw #2962FF, Teeth #E91E63, Lips #66BB6A, 1 pxFixed coloursBlue, pink and green, each one pixel.
Setting
Jaw Length
Default
13
Range
1 to 1,000
What it changes
The slowest line. Longer keeps it further from price.
Setting
Teeth Length
Default
8
Range
1 to 1,000
What it changes
The middle line.
Setting
Lips Length
Default
5
Range
1 to 1,000
What it changes
The fastest line. The Signal lens on this page changes the Jaw only.
Setting
Jaw Offset
Default
8
Range
-500 to 500
What it changes
How many bars to the right the Jaw is drawn.
Setting
Teeth Offset
Default
5
Range
-500 to 500
What it changes
How many bars to the right the Teeth are drawn.
Setting
Lips Offset
Default
3
Range
-500 to 500
What it changes
How many bars to the right the Lips are drawn.
Setting
Lines
Default
Jaw #2962FF, Teeth #E91E63, Lips #66BB6A, 1 px
Range
Fixed colours
What it changes
Blue, pink and green, each one pixel.
1316 turns of the Lips in view
70,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.

Alligator strategiesUse it in 3 setups.

Trade only while the lines are stacked

WhileLipsleadTeethandJawhold

A stack means the three averages agree on direction. Traders often stand aside while the lines are tangled.

Wait out a tangle

Ifthe three lines overlapthenskip new entries

A tangle is a quiet median price. New entries during it get chopped up by the next small swing.

Lips through Teeth as the trigger

IfLipscross aboveTeethandthe Jaw is belowthenlook long

The cross is the short average changing side. Many traders still want price and the Jaw on the same side.

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

Alligator mistakesCommon mistakes.

Trading every Lips cross while the lines overlap

In a tangle the Lips cross the Teeth often, and the offsets make each cross late.

Reading the shift as a prediction

The lines are drawn to the right of the bars they were calculated on. The space ahead is an offset, not where price is going.

Using the Alligator as a stop on its own

The Lips sit close to price and flip in a range. A stop needs room for a normal bar.

Alligator combinationsPair it with these.

Alligator FAQQuestions traders ask.

What are the default Alligator settings?

Jaw 13 shifted 8, Teeth 8 shifted 5, Lips 5 shifted 3, all of the median price.

What is the median price?

(High + low) / 2. The Alligator has no source input.

What does shifted forward mean?

The line is drawn that many bars to the right of the bar it was calculated on. The average itself only uses past bars.

What does a sleeping Alligator look like?

The three lines twisted together. The averages of the median price are nearly the same.

Why do the lines start at different bars?

Each line waits for its own first window: 5 bars for the Lips, 8 for the Teeth, 13 for the Jaw.

Is the Alligator leading or lagging?

Lagging. It is three averages of past median prices, drawn late by their offsets.

Does the Alligator repaint?

No. A closed bar keeps its three values. The lines extend into the empty offset to the right of the last bar, and the live bar moves until it closes.

What timeframe can I use?

Any. Shorter charts tangle and untangle more often.

Who created the Alligator?

Bill Williams described it in Trading Chaos (Wiley, 1995). The smoothing is the one J. Welles Wilder Jr. published in 1978.

Related indicatorsMore bill williams tools.

All bill williams indicators

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

Works in your browser and on iPhone too.

Example market1h
Williams Alligator (13, 8, 5, 8, 5, 3)