Alligator
Indicator
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.
The three lines are tangled or stacked the other way.
Jaw 69,486.3
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.
Lines tangled
Jaw, Teeth and Lips sit on top of each other. The averages agree, so the recent median price has gone nowhere.
Lines stacked and apart
Price, Lips, Teeth and Jaw line up in that order. The short average is leading the longer ones.
Price crosses the Lips
The close moves through the fastest line. It is the first of the three to react.
Lips cross the Teeth
The 5-bar line moves through the 8-bar line. The short average has changed side.
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.
Median price
On each bar take (high + low) / 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.
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.
| Setting | Default | Range | What it changes |
|---|---|---|---|
| Jaw Length | 13 | 1 to 1,000 | The slowest line. Longer keeps it further from price. |
| Teeth Length | 8 | 1 to 1,000 | The middle line. |
| Lips Length | 5 | 1 to 1,000 | The fastest line. The Signal lens on this page changes the Jaw only. |
| Jaw Offset | 8 | -500 to 500 | How many bars to the right the Jaw is drawn. |
| Teeth Offset | 5 | -500 to 500 | How many bars to the right the Teeth are drawn. |
| Lips Offset | 3 | -500 to 500 | How many bars to the right the Lips are drawn. |
| Lines | Jaw #2962FF, Teeth #E91E63, Lips #66BB6A, 1 px | Fixed colours | Blue, 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.
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
A stack means the three averages agree on direction. Traders often stand aside while the lines are tangled.
Wait out a tangle
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
The cross is the short average changing side. Many traders still want price and the Jaw on the same side.
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 + Awesome Oscillator
The same median price, as a column of the 5-bar average minus the 34-bar average.
Alligator + ADX
ADX rises when a trend is underway. Traders often ignore Alligator crosses while it is low.
Alligator + Williams Fractals
Williams used fractals with the Alligator to mark swings outside the lines.
Alligator + ATR
ATR shows whether a bar is large enough to matter against the spread of the three lines.
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 indicatorsTry Alligator on a live chart.
Free. No download.
Works in your browser and on iPhone too.