Alligator Forex Strategy: Rules, Filters, and Backtest Results

Learn how the Bill Williams Alligator uses three shifted Smoothed Moving Averages, how its lines are interpreted during trending and consolidating conditions, and how a defined Alligator + Fractals + Awesome Oscillator rule model performed in a historical sensitivity test.
 
Written byHenry Green
Published
Last updated

Key Takeaways

  • The Alligator uses three Smoothed Moving Averages applied to median price: Jaw (13 periods, shifted 8 bars), Teeth (8, shifted 5), and Lips (5, shifted 3). The shifts move the plotted lines forward; they do not translate into a fixed number of pips that must be missed before a trend is identified.
  • Bill Williams' framework treats intertwined lines as a non-trending or 'sleeping' condition and separated, directional lines as a trending condition. The 15-30% trend-frequency figure is a rule-of-thumb associated with the original Alligator description, not a guarantee for every pair or timeframe.
  • This article tests a specific Alligator + Fractals + Awesome Oscillator rule model. It should not be confused with Alexander Elder's separate Triple Screen Trading System.
  • Stop placement should begin with a structural invalidation level. After the stop level and resulting stop distance are known, position size can be calculated from the account risk limit; a universal 5-10 pip buffer is not appropriate for every pair or volatility regime.
  • No timeframe is universally 'best' for the Alligator. Shorter charts generally contain more market noise, so any timeframe-specific rule should be validated on the instrument and execution conditions being traded.
  • In the supplied 2014-2024 hypothetical sensitivity test, combined results were positive, while pair-level expectancy was positive for USDCHF and USDJPY and slightly negative for the other four tested pairs. These historical results do not establish future profitability.
Risk note: Forex trading involves risk of loss, including the possible loss of the entire investment. The Alligator is a smoothed trend-following indicator, so confirmation may occur after a move has begun. Its 3-8 bar forward plotting does not imply a fixed pip delay or guarantee future price direction. Historical backtests do not guarantee future results. Review FXGlory's risk disclosure before trading live.
Educational note: This material explains the Alligator indicator and a defined Alligator + Fractals + Awesome Oscillator rule model. It is not financial advice, a trading signal, or a recommendation to trade any specific pair or timeframe.
Indicator basics: For installation steps and a broader introduction to the sleeping and feeding terminology, see the Alligator Forex Indicator guide. The strategy below focuses on a defined multi-indicator rule model and its historical test results.

How Alligator Lag and the Sleep Phase Work

The Alligator combines smoothed moving averages, so it responds to price with the delay expected from a trend-following average. Its Jaw, Teeth, and Lips are also plotted 8, 5, and 3 bars forward. Those shifts move the displayed lines; they do not translate into a fixed number of pips that must be missed before a trend is recognized.

MetaTrader's description of the Bill Williams Alligator states that clear trends may be visible only about 15-30% of the time and describes intertwined lines as a sleeping phase. Treat that percentage as part of the indicator's original framework rather than a universal statistic for every instrument, timeframe, or market regime.

For practical use, the important distinction is between compressed, mixed lines and clearly separated lines moving in a common direction. A rule-based strategy should define those conditions explicitly and then test them on the intended market rather than assuming that every sleeping phase will produce a loss or every separated phase will produce a profitable trend.

The Anatomy: Jaw, Teeth, and Lips Explained

The indicator consists of three Smoothed Moving Averages (SMMA) applied to the Median Price (High + Low) / 2, shifted forward in time:

  • Jaw (Blue line): 13-period SMMA shifted 8 bars forward. It is the slowest of the three lines.
  • Teeth (Red line): 8-period SMMA shifted 5 bars forward. It reacts faster than the Jaw.
  • Lips (Green line): 5-period SMMA shifted 3 bars forward. It is the fastest of the three lines.
Line order is one clue: A common bullish alignment is Jaw below Teeth below Lips, while the order reverses in a bearish alignment. Mixed ordering can occur during transitions or consolidation, so line order should be read together with slope, separation, and price context.

The Four Phases: Sleeping, Awakening, Feeding, Sated

The Alligator cycles through four distinct phases. Recognizing each phase is critical to avoiding losses:

PhaseVisual CharacteristicsTrading Action
1. SleepingLines intertwined, moving sideways, or tightly grouped relative to recent price movement. Price may oscillate across the lines.STAND ASIDE IN THIS RULE SET. Intertwined lines indicate that the trend filter is not satisfied and whipsaw risk may be higher.
2. AwakeningLips (green) crosses above/below Teeth and Jaw. Lines begin to separate slightly. Price breaks decisively beyond all three lines.WATCH. The lines are beginning to separate, but the full trend filter may not yet be satisfied.
3. FeedingLines clearly separated relative to recent price movement and sloping in the same direction. Price remains mainly on one side of the lines.TREND FILTER ACTIVE. This is the phase in which the rule model looks for a separate entry trigger rather than treating line separation itself as an entry.
4. SatedLips crosses back toward Teeth. Lines begin to converge. Price loses momentum and oscillates around the Lips.REVIEW THE EXIT RULE. Convergence can indicate weakening trend conditions, but the exact exit should follow the strategy's predefined rule.
Alligator indicator sleeping phase versus feeding phase comparison showing intertwined lines versus separated sloping lines
Visual comparison of the Alligator's sleeping phase (left) where lines are intertwined and price chops sideways, versus the feeding phase (right) where lines separate and slope upward in a strong trend.

Alligator + Fractals + Awesome Oscillator Rule Model

This page tests a three-filter model built from Bill Williams indicators: the Alligator for trend direction, Fractals for a breakout level, and the Awesome Oscillator (AO) for a momentum filter. This combination should not be confused with Alexander Elder's separate Triple Screen Trading System.

Step 1: The Alligator (Trend Direction)

Wait for the Alligator to wake up. The Jaw, Teeth, and Lips must be separated and sloping in the same direction. This establishes the trend direction. If the lines are intertwined, ignore all subsequent steps.

Step 2: Fractals (Structural Breakout)

Identify a 5-bar fractal pattern in the direction of the trend.

  • Bullish Fractal: A 5-bar sequence where the middle bar has the highest high.
  • Bearish Fractal: A 5-bar sequence where the middle bar has the lowest low.

The entry trigger is the breakout above the bullish fractal high (for buys) or below the bearish fractal low (for sells).

Step 3: Awesome Oscillator (Momentum Confirmation)

For the historical rule model on this page, the Awesome Oscillator (AO) applies a simple zero-line filter:

  • For bullish entries: AO must be above zero.
  • For bearish entries: AO must be below zero.

Test rule: For this model, a bullish breakout is accepted only when AO is above zero; a bearish breakout is accepted only when AO is below zero. If the AO filter disagrees with the entry direction, the model skips the trade.

Alligator Fractals and Awesome Oscillator rule model showing trend direction fractal breakout and momentum filter
The tested three-filter sequence: (1) separated Alligator lines define direction, (2) a fractal breakout provides the trigger, and (3) the Awesome Oscillator applies the model's momentum filter.

Three Entry Styles: Later to Earlier Confirmation

Traders sometimes use the Jaw, Teeth, or Lips as different confirmation points. These are entry styles to test, not established risk rankings, and their performance can vary by instrument, timeframe, and exit method.

1. Jaw-Based Confirmation

Waiting for price to close beyond the Jaw uses the slowest Alligator line as the confirmation point. It generally produces a later signal than Teeth- or Lips-based rules, but the amount of price movement that has already occurred cannot be expressed as a universal pip value.

2. Teeth-Based Confirmation

A Teeth-based rule uses the middle-speed line as its confirmation point and will generally respond sooner than a Jaw-based rule under the same market conditions.

3. Lips-Based Confirmation

A Lips-based rule uses the fastest line and can respond earlier, but earlier timing does not by itself establish that the method has higher or lower risk or better or worse expectancy.

Test the threshold: Fixed line-separation thresholds such as 15-20 pips on Daily or 8-10 pips on H4 are strategy parameters, not universal Alligator rules. Volatility-aware definitions or instrument-specific testing may be more appropriate.
Three Alligator confirmation styles using the Jaw Teeth and Lips lines at progressively earlier points
Three possible confirmation points using the Jaw, Teeth, and Lips. The lines differ in responsiveness, but their relative risk and performance must be established through testing rather than assumed from timing alone.

Exit Rules and a Trailing-Stop Approach

An Alligator strategy needs an explicit exit rule that can be tested consistently. Common rule ideas include:

  • Primary Exit (Lips Cross Back): Close the position when the Lips (green) crosses back toward the Teeth (red). In an uptrend, this means the Lips crosses below the Teeth. In this rule set, that cross is treated as an exit condition; it does not guarantee a reversal.
  • Secondary Exit (Line Convergence): Exit when the distance between Jaw and Lips decreases by 50% from its maximum. This is an alternative rule that would need separate testing because it differs from the backtest exit used below.
  • Trailing Stop Method: Instead of fixed exits, trail your stop-loss just beyond the Jaw line. In an uptrend, move your stop to the Jaw line value minus the structural buffer (detailed below) after every daily close. Exit when price hits the trailing stop. A Jaw-based trailing stop may remain farther from price than a faster-line exit, so its results should be tested separately.

Stop-Loss Placement and Structural Invalidation

A stop should represent the price level at which the setup is no longer valid, not an arbitrary distance from an Alligator line. Price can trade beyond obvious swing or fractal levels before reversing, but that does not justify a universal fixed-pip buffer.

For a fractal-breakout model, one approach is to place the invalidation beyond the relevant opposing fractal or another clearly defined structure level, then allow for spread and any tested volatility or execution buffer. The resulting stop distance will vary by pair and market conditions.

Determine the stop level first, calculate the resulting stop distance second, and only then calculate position size from the account risk limit. The forex risk management strategy explains this relationship in more detail. The historical test below used a fixed 5-pip buffer as a model assumption; that value should not be treated as a general live-trading recommendation.

Example Alligator chart showing a structural stop placed beyond a brief move below the Jaw line
Example of a wider structural stop remaining beyond a brief move below the Jaw. The illustration shows one possible outcome and does not establish an optimal buffer distance.

Timeframes and the Forward Shift

The Alligator can be applied to different chart timeframes. Its 3-, 5-, and 8-bar shifts represent different amounts of clock time on each chart, while signal quality also depends on volatility, spread, liquidity, and the exact rules being tested.

Timeframe8-Bar Shift (Jaw) RepresentsConsiderations
Weekly (W1)8 Weeks (2 Months)Very slow signal frequency; an 8-bar Jaw shift spans eight weekly bars.
Daily (D1)8 DaysAn 8-bar Jaw shift spans eight daily bars. The historical test on this page uses Daily data.
4-Hour (H4)32 Hours (1.3 Days)An 8-bar Jaw shift spans 32 hours. Performance should be tested separately from the Daily model.
1-Hour (H1)8 HoursAn 8-bar Jaw shift spans eight hours. Shorter horizons may increase sensitivity to noise and trading costs.
15-Min (M15)2 HoursAn 8-bar Jaw shift spans two hours. This page provides no backtest establishing whether the timeframe is suitable or unsuitable.

Timeframe takeaway: The bar shift itself does not establish a minimum usable timeframe. Shorter charts can be noisier and more sensitive to spread and slippage, so lower-timeframe use should be evaluated with instrument-specific backtesting and the current conditions and rules for the trading account.

Backtesting the Alligator Strategy

Manual chart review can introduce hindsight and selection bias. A reproducible backtest therefore needs explicit rules for line separation, entries, exits, costs, and invalidation:

  • Define 'sleep phase' as all three lines within 15 pips of each other (daily).
  • Define 'awakening' as Lips crossing beyond both Teeth and Jaw with minimum 10-pip separation.
  • Execute entry only on a Fractal breakout confirmed by the Awesome Oscillator (AO).
  • For this historical model, apply the tested fixed 5-pip buffer plus assumed spread beyond the Fractal. Treat this as a backtest parameter, not a universal stop rule.
  • Exit when Lips crosses back toward Teeth.

Educational Backtest: Alligator + Fractals + AO Across Six Pairs (2014–2024)

The following results were generated from yfinance public research data using the mechanical rules described above. The data source was public research data, not FXGlory broker execution data.

Combined Metrics — All Pairs, All Sensitivity Runs

MetricAlligator + Fractals + AO Model
Trades (all sensitivity runs)5,256
Win rate33.20%
Average win+1.99R
Average loss-0.86R
Expectancy+0.088R
Profit factor1.15
Max drawdown-96.89R
Worst losing streak14 trades
Avg holding period8.93 days

Pair-Level Comparison

PairTradesWin RateExpectancyProfit Factor
EURUSD86434.72%-0.008R0.99
GBPUSD92733.01%-0.041R0.92
USDJPY81936.75%+0.191R1.35
AUDUSD93625.00%-0.035R0.95
USDCAD99033.03%-0.029R0.95
USDCHF72038.47%+0.575R2.09
Alligator strategy backtest results showing expectancy by currency pair with USDCHF and USDJPY profitable and other pairs negative
Historical pair-level expectancy from the 2014-2024 test. USDCHF and USDJPY were positive in this model, while EURUSD, GBPUSD, AUDUSD, and USDCAD were slightly negative. Results are hypothetical and model-specific.

Four findings from this historical test deserve attention:

1. Combined expectancy was positive, but modest. Across the combined sensitivity runs, expectancy was +0.088R and profit factor was 1.15. The 33.2% win rate was offset by a larger average win (+1.99R) than average loss (-0.86R). These figures describe the tested historical rules and do not prove live profitability.

2. Pair-level results varied materially. USDCHF recorded +0.575R expectancy and a 2.09 profit factor, while USDJPY recorded +0.191R and 1.35. EURUSD, GBPUSD, AUDUSD, and USDCAD were slightly negative in this test. This is evidence about the model and dataset, not a universal ranking of currency pairs.

3. Average holding time was 8.93 days. Broker-specific swap and rollover were not included, so the test cannot show whether financing costs would preserve or erase the reported expectancy.

4. Drawdown was substantial. The combined maximum drawdown was -96.89R and the worst losing streak was 14 trades. Because R is a risk-unit measure, converting -96.89R into an account-percentage drawdown requires an explicit position-sizing and compounding model.

Backtesting warning: Historical backtests are hypothetical. The identification of Alligator phases can vary slightly depending on the algorithm used. The combined summaries aggregate multiple spread and slippage scenarios and should not be read as one live-account path. Swap and rollover costs were not included. The Python script and trade log used to generate these results are available on request.

Frequently Asked Questions

What are the exact default settings for the Alligator indicator?

The standard MetaTrader settings use three Smoothed Moving Averages (SMMA) applied to Median Price, (High + Low) / 2: Jaw = 13 periods shifted 8 bars forward, Teeth = 8 periods shifted 5 bars forward, and Lips = 5 periods shifted 3 bars forward. The shifts change where the calculated lines are plotted; they do not create a fixed pip delay.

What is the best currency pair for the Alligator indicator?

There is no universally best currency pair. In the specific 2014-2024 hypothetical sensitivity test reported on this page, USDCHF and USDJPY had positive expectancy, while EURUSD, GBPUSD, AUDUSD, and USDCAD were slightly negative. That result applies only to the tested rules, data source, and cost assumptions and should not be treated as a general ranking of pairs or proof of future performance.

Does the Alligator indicator repaint?

The standard Alligator calculation uses historical and current bar data, while its three lines are plotted forward by 3, 5, and 8 bars. Values associated with the current, still-forming bar can change as its high and low change. Closed-bar calculations do not retroactively use future price data, although the forward plotting can make the chart look unusual if it is mistaken for a forecast.

How does the Alligator + Fractals + AO rule model work?

The rule model tested on this page uses three filters: the Alligator establishes direction when its lines are separated and sloping together; a five-bar fractal provides the breakout level; and the Awesome Oscillator must be above zero for bullish entries or below zero for bearish entries. The model enters after a close beyond the relevant fractal level. These are the rules of this educational test, not Alexander Elder's Triple Screen system.

Does the Alligator's forward shift mean it will miss a fixed number of pips?

No. The Jaw, Teeth, and Lips are shifted forward by a fixed number of bars, but the price distance covered during those bars varies with the currency pair, timeframe, and volatility. The Alligator is a smoothed trend-following indicator, so confirmation can occur after a move has already started, but there is no universal 100-pip or 200-pip delay.

Can the Alligator indicator be used for scalping on M5 or M15 charts?

It can be plotted on M5 or M15, but this article does not provide evidence for a categorical claim that those timeframes are unusable. Shorter timeframes generally contain more noise and make spread, slippage, and execution quality more important. Anyone testing a lower-timeframe Alligator method should validate the exact rules on the intended instrument and check the current conditions and rules for their specific trading account.

Related Contents

Forex Trend Trading StrategyReview broader trend structure, including higher highs, lower lows, and structure changes that can add context to Alligator line direction.
RSI Forex Trading StrategyCompare the Alligator's trend-following view with RSI momentum and divergence concepts.
Forex Breakout StrategyReview breakout structure and false-breakout risk relevant to fractal-based entry triggers.
Forex Risk Management StrategyReview stop placement, account risk, and position sizing after the structural stop level and stop distance have been defined.
Fibonacci in Forex TradingExplore Fibonacci retracement levels as a separate way to map pullback areas alongside broader trend context.
Forex Swing Trading StrategyReview swing-trading concepts that can help frame multi-day Alligator signals and holding periods.

Practice an Alligator Rule Set Before Trading Live

Use a demo environment to observe how the Alligator, fractals, and Awesome Oscillator behave across different pairs and timeframes. Compare spreads, slippage, stop distance, and signal frequency before considering real-fund trading.

Create an FXGlory Account