Trend indicators

Williams Fractal Indicator: The Five-Bar Rule, the Two-Bar Delay and a Bitcoin Example

Bill Williams’ fractals mark a high with two lower highs on each side, or a low with two higher lows; here is the exact rule, why the newest two bars can never carry one, how Williams filters them with the Alligator, and how many fractals daily Bitcoin produced.

· Founder of PatternsWizard
Checked 7 min read
Williams Fractals(5 bars) on Bitcoin, daily, August 30, 2026 to October 28, 2026. Real bars, each case marked by the rule; an illustration, not a backtest.
On this page
  1. The five-bar rule
  2. Why fractals appear two bars late
  3. Williams fractal settings
  4. Fractals in Bill Williams’ system
  5. Fractals and pivot highs and lows
  6. Fractals on a real chart
  7. Does it work?
  8. Frequently asked questions

The Williams Fractal indicator marks swing highs and swing lows with a fixed rule. Bill Williams, who described it in his book Trading Chaos, calls an up fractal a bar with two lower highs before it and two lower highs after it, and a down fractal a bar with two higher lows on each side. MetaTrader 5’s help lists the fractal as one of the five indicators of Williams’ trading system. The claim, common online, that Williams had more than 50 years of trading experience has no source we could find. On the chart, each fractal appears as an arrow above the high or below the low of the bar it marks.

Williams fractals on daily Bitcoin

Williams Fractals(5 bars) on Bitcoin, daily, July 1, 2026 to October 28, 2026. Real bars, each case marked by the rule; an illustration, not a backtest.
  • Price, daily candles (hollow up, filled down)
  • Up fractal: a high above the 2 highs on each side, known 2 bars later
  • Down fractal: a low below the 2 lows on each side, known 2 bars later
Williams Fractals(5 bars) on Bitcoin, daily, July 1, 2026 to October 28, 2026. Real bars, each case marked by the rule; an illustration, not a backtest.

The five-bar rule

MetaTrader 5 defines an up fractal as a series of at least five successive bars with the highest high in the middle and two lower highs on both sides, and a down fractal as the same series with the lowest low in the middle. Linn Software, which documents the indicator from Trading Chaos, puts it the same way: “a bar that has two preceding and two following bars with lower highs (or lower lows, on a down move).” Linn also offers a set of other odd pattern lengths, between 3 and 19 bars, instead of the traditional five, and notes that the definition has variations.

Why fractals appear two bars late

The rule needs two bars after the fractal bar. The newest two bars of any chart can therefore never carry a confirmed fractal: the next bars could still make a higher high or a lower low. Once two later bars have closed without beating it, the fractal does not change. Our chart draws only confirmed fractals, on the bar they mark; each of them was known two bars later. Check how your platform shows the newest bars before acting on an arrow.

Up and down fractals, and why the newest bars have none

Up and down fractals, and why the newest bars have none: twelve candles. An up fractal sits on a bar whose high is above the two highs before it and the two after it; a down fractal sits on a bar whose low is below the two lows on each side. An arrow shows the fractal is known two bars later. The two most recent bars are shaded: no fractal can be confirmed there yet.
Schematic, not market data.Each arrow is confirmed two bars after the bar it marks, so the two newest bars cannot show one yet.

Williams fractal settings

The only setting is the number of bars required on each side of the fractal bar. Two is Williams’ rule and the usual default: TradingView’s help says the indicator is usually preset to the five-candle pattern, and that the setting can be changed. One bar per side gives a three-bar pattern, more bars a wider one. We counted, on the full daily history of the S&P 500 ETF (January 1993 to October 2026) and of Bitcoin (August 2017 to October 2026), how many fractals each setting marks per 100 bars, up and down together.

Fractals per 100 bars, by bars on each side

Fractals per 100 bars, by bars on each side. 1 bar per side: S&P 500 ETF 45.9, Bitcoin 46.8; 2 bars per side (default): S&P 500 ETF 26.4, Bitcoin 27.3; 3 bars per side: S&P 500 ETF 18.2, Bitcoin 19.5; 5 bars per side: S&P 500 ETF 11.7, Bitcoin 12.3; 10 bars per side: S&P 500 ETF 5.5, Bitcoin 6.3. Our computation; the inputs and the method are in the text.
  • S&P 500 ETF
  • Bitcoin
Our computation; the inputs and the method are in the text.Up and down fractals together, daily bars, S&P 500 ETF from January 1993 and Bitcoin from August 2017, to October 2026. Equal highs or lows do not qualify, so a platform that treats them differently will count a little differently.

Each extra bar per side cuts the count, and the two markets behave almost the same: on the default setting, about 26 to 27 fractals per 100 bars, roughly one every four bars. Each extra bar also adds one bar of delay before the fractal is known. A wider setting does not make a fractal more reliable; it only keeps the larger swings, as on our pivot high and low page, where the same trade-off is measured in price.

Fractals in Bill Williams’ system

MetaTrader 5’s help says fractal signals need to be filtered with the Alligator: you should not close a buy if the fractal is below the Alligator’s Teeth line, nor a sell if the fractal is above it. A signal stays valid until it is reached or a more recent fractal appears. Linn Software adds the usual use as an entry or a stop: a buy stop one tick above an up fractal, a sell stop one tick below a down fractal. The chart below shows the Alligator on the same daily Bitcoin bars as the fractal chart below the introduction; see our page on the Williams Alligator for its three lines. TradingView lists the Williams Fractal among its built-in indicators, preset to the five-bar rule, so you can open a free TradingView account (affiliate link) and plot both on your own chart.

Williams Alligator on daily Bitcoin

Alligator(13/8, 8/5, 5/3) on Bitcoin, daily, July 1, 2026 to October 28, 2026. Illustration of how the indicator reads, not a backtest.
  • Price, daily candles (hollow up, filled down)
  • Jaw, SMMA(13) of the median price, shifted 8 bars (dashed line)
  • Teeth, SMMA(8), shifted 5 (solid line, second color)
  • Lips, SMMA(5), shifted 3 (solid line)
Alligator(13/8, 8/5, 5/3) on Bitcoin, daily, July 1, 2026 to October 28, 2026. Illustration of how the indicator reads, not a backtest.The same bars as the fractal chart below the introduction. The chart illustrates the filter; it does not test it.

Fractals and pivot highs and lows

A fractal is a pivot high or low with two bars on each side. Our page on pivot high and low points covers the general version, with any number of bars on each side; more bars give fewer, more significant swings and a longer delay. Fractals and pivots are often used to draw support and resistance levels.

Fractals on a real chart

The fractal chart below the introduction shows daily Bitcoin from July 1 to October 28, 2026, with 18 up fractals and 19 down fractals. Over the 600 daily bars of our chart series, to October 28, 2026, the five-bar rule marked 171 fractals, about one every three and a half days. With one bar on each side instead of two, the count rises to 267. The last confirmed up fractal was the high of 84,898 on October 21, and the last confirmed down fractal the low of 79,220.74 on October 24. The bars of October 27 and 28 could not be fractals yet. The last close, 81,343.50, sat between the two levels.

At that frequency a single fractal says little about the larger trend, and Williams’ system does not trade every arrow: it filters them with the Alligator.

Does it work?

We have no long-run measurement of fractal signals: our bench tests chart patterns detected by rule against random entries, not indicators (see our methodology). A fair test of fractals would compare entries beyond them, with the Alligator filter and without it, on many markets, with costs.

For related tools, see Polarized Fractal Efficiency, which uses the word fractal in another sense, and breakout trading, or the full list of trend indicators.

Every pattern's results on one sheet

The only pattern cheat sheet with tested stats: 152 patterns, what the textbook says and what really happened on 6 markets. Free PDF, sent to your inbox.

The PDF by email, plus our newsletter: new tests and results that change. Unsubscribe anytime. Privacy.

Frequently asked questions

What is a Williams fractal?

A bar whose high is above the highs of the two bars on each side (up fractal), or whose low is below the lows of the two bars on each side (down fractal). Bill Williams uses them in his trading system.

How many bars make a fractal?

At least five: the fractal bar and two bars on each side. Some platforms let you change the number of bars on each side.

What are the best settings for the Williams fractal?

There is no best setting, only a trade-off. Two bars per side is Williams’ rule and the usual default; on daily S&P 500 ETF and Bitcoin bars it marked about 26 to 27 fractals per 100 bars. Five bars per side cut that to about 12, at the cost of three more bars of delay.

Does the fractal indicator repaint?

A fractal cannot be confirmed until two bars after the bar it marks. Once those two bars have closed, it stays. A mark shown on the newest two bars is only provisional.

What is a good Williams fractal strategy?

Williams filters fractals with the Alligator and uses a stop one tick beyond the fractal as an entry. We have not tested it, and we found no documented test of the rule.

What is the difference between fractals and pivot points?

Fractals are pivot highs and lows with a fixed two bars on each side. See pivot high and low points for the general version.

Sources

  1. MetaTrader 5 Help, Fractals
  2. Linn Software, Fractals (Swing Highs and Swing Lows)
  3. TradingView Help Center, Williams fractal indicator
, Founder of PatternsWizard

Passionate about finance, quantitative trading and data analysis. Amaury built the PatternsWizard test bench, which detects each pattern on full price history and measures what happened next against random entries.

PatternsWizard tests chart and candlestick patterns on full market history, against random entries. How we test patterns.

179 patterns testedRandom-walk self-test passed

Related guides

All trend indicators articles