Forex traders frequently rely on specialized technical indicators to pinpoint high-probability trend breakouts and filter out sideways market noise. Developed by legendary market psychologist and trader Bill Williams in 1995, the Williams Alligator Indicator uses three color-coded Smoothed Moving Averages (SMMA) tuned to Fibonacci numbers—5, 8, and 13—to reveal when markets are sleeping in consolidation or aggressively trending. In this complete guide, we examine how the Alligator works, its mathematical formula, complete bullish and bearish trading setups, and step-by-step trailing stop risk management.
🐊 Quick Summary: Williams Alligator Indicator
- Creator & Philosophy: Introduced by Bill Williams in 1995 based on the observation that financial markets trend only 15% to 30% of the time and range sideways 70% to 85% of the time.
- Three Fibonacci Lines: Lips (5-period SMMA, Green), Teeth (8-period SMMA, Red), and Jaw (13-period SMMA, Blue).
- Market Phases: When the three lines intertwine closely, the Alligator is Sleeping (consolidation). The longer it sleeps, the stronger the eventual Eating breakout trend.
- Optimal Timeframes: Works on all timeframes, though Hourly (H1), 4-Hour (H4), and Daily (D1) charts offer superior signal reliability by filtering false intraday spikes.
What Is the Williams Alligator Indicator?
First documented by American author and trader Bill Williams in 1995, the Alligator Indicator applies trend-following geometry to uncover directional price movements across Forex pairs, commodities, stock indices, and cryptocurrencies. Williams observed that markets spend roughly 70% to 85% of their time moving sideways—making trend-identification tools essential so traders avoid getting chopped up during low-conviction ranges.
How Does the Williams Alligator Indicator Work?
The Alligator Indicator plots three Smoothed Moving Averages directly onto your price chart, each named after a distinct anatomical feature of an alligator:
1. Lips (Green — SMMA 5)
The fastest-moving average (5 periods). It reacts first to subtle price shifts and initiates early trend crossovers.
2. Teeth (Red — SMMA 8)
The intermediate balance line (8 periods). Confirms momentum continuation once Lips crosses past it.
3. Jaw (Blue — SMMA 13)
The slowest anchor line (13 periods). Defines the primary macro bias; when Lips and Teeth cross it, a full trend confirms.
When the three moving average lines coil tightly together or cross repeatedly back and forth, the Alligator is sleeping—signaling low volatility and sideways consolidation. Just like a real predator, the longer the Alligator sleeps, the hungrier it wakes up: extended tight consolidations frequently precede explosive directional breakouts.
As the lines fan apart, the Alligator is eating (trending). During an uptrend, the blue Jaw sits at the bottom and the green Lips leads at the top; during a downtrend, the blue Jaw stays on top while the green Lips plunges underneath.
The Williams Alligator Mathematical Formula
The Alligator uses Fibonacci periods of 13, 8, and 5 calculated via a Smoothed Moving Average (SMMA) initialized from a Simple Moving Average (SMA):
Initial Simple Moving Average (SMA):
SUM1 = SUM(CLOSE, N)
SMMA1 = SUM1 / N
Subsequent Smoothed Moving Average Values:
PREVSUM = SMMA(i - 1) * N
SMMA(i) = (PREVSUM - SMMA(i - 1) + CLOSE(i)) / N
Where:
- SUM1 = Sum of closing prices over N periods
- PREVSUM = Smoothed sum of the preceding bar
- SMMA1 = Initial smoothed moving average
- SMMA(i) = Current bar smoothed moving average
- CLOSE(i) = Current period closing price
- N = Smoothing period (5 for Lips, 8 for Teeth, 13 for Jaw)
How to Trade with the Williams Alligator Indicator
While the Alligator indicator works across all intervals, trading on 1-Hour (H1), 4-Hour (H4), or Daily (D1) charts minimizes false intraday whipsaws and captures sustained currency waves.
Bullish Trade Setup (Buy Rules)
- Confirm that the green Lips (5) line crosses clearly above both the red Teeth (8) and blue Jaw (13) lines.
- Verify that the red Teeth line also crosses above the blue Jaw line, fanning upward in bullish alignment.
- Wait for the breakout bullish candle to close cleanly above all three lines, then open a Buy order.
- Place your initial Stop Loss below the most recent swing low, and hold until the green Lips crosses back beneath the red Teeth line to take profit.
Bearish Trade Setup (Sell Rules)
- Watch for the green Lips (5) line to cross sharply below both the red Teeth (8) and blue Jaw (13) lines.
- Confirm that the red Teeth line also crosses beneath the blue Jaw line, forming a downward fanned mouth.
- Wait for the confirming bearish candle to close below the lines, then enter a Sell position.
- Place your initial Stop Loss above the nearest swing high, and close the trade when the green Lips line crosses back above the red Teeth line.
How to Manage Risk & Trail Your Stop Loss
First and foremost, avoid taking entries whenever price moves sideways or the three Alligator lines remain intertwined (sleeping). Once inside a valid breakout trend, proactively trail your stop loss to protect unrealized gains:
As shown in the GBP/USD downtrend chart above, suppose you execute a Sell position at point X with an initial stop loss placed near swing high A. Once price drops to form a fresh lower low at point B and pulls back cleanly to a lower high at point C without breaking the Alligator trend structure, shift your stop loss down to breakeven (at X or 2–5 pips in profit). This simple step turns your position risk-free while letting the trend run toward point D and beyond.
Final Thoughts
Although you will rarely catch the exact tick where a new trend begins, the Williams Alligator excels at keeping you positioned inside the meat of major currency trends as early as possible. Combine its clear crossover alignment with disciplined stop-loss management and higher-timeframe context to maximize long-term consistency.
📚 Related Indicator & Trend Trading Guides
⚠️ Risk Disclosure & Educational Disclaimer
Trading foreign exchange and CFDs on margin carries significant risk and may not be suitable for all investors. Moving average indicators like the Williams Alligator are lagging trend-following tools that can experience false crossovers during prolonged sideways markets. Always test strategies on a demo account and apply strict risk management.















