Williams Fractals

Fractals
Indicator

Bill WilliamsOn the price chartFree on ChartLabs

Williams Fractals mark swing highs and lows: a bar whose high tops the two bars on each side, or whose low sits under them. Each mark appears two bars later.

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

Example market1hIndicatorsAtlas AIFractalschartlabs.co/charts
Atlas reads it

Price is under the last down fractal at 69,243: the latest swing low has given way.

Up 66,500 · Down 69,243

Atlas reads it

Price is under the last down fractal at 69,243: the latest swing low has given way.

Up 66,500 · Down 69,243

Illustration on simulated data.

Williams FractalsWhat is the Fractals indicator?

Fractals draw small triangles on the price chart: a teal ▲ above an up fractal's high and a red ▼ under a down fractal's low. There is no panel and no value to read.

An up fractal is a bar whose high is higher than the highs of the two bars before it and the two bars after it. A down fractal is the same for lows. On a flat top with equal highs, the newest of them is marked, as on TradingView.

Because the two later bars are needed, a mark appears two bars after the swing it marks. Once drawn it stays, but it is never early. The latest marks act as nearby resistance and support.

Five bars by default

Periods 2 means two bars on each side, the five-bar pattern Williams described. Larger values keep only bigger swings.

With the Alligator

Williams used fractals with his Alligator: a break of an up fractal counted only when it happened above the Alligator's teeth.

Fractals signalsFive patterns to know.

▲▲▼▼High above two bars on each side
1Inconclusive

Up fractal

A high above the two bars on each side. It marks a swing high to watch.

▼▲▼▲▼▼▲Low under two bars on each side
2Inconclusive

Down fractal

A low under the two bars on each side. The latest one is nearby support.

▲▼▼▲▼▲▼▲▼▲
3Bullish lean

Close above the last up fractal

Price clears the latest swing high. Williams treated this as his buy signal.

▲▼▼▲▼▲▼▲▼▼▲
4Bearish lean

Close under the last down fractal

Price gives up the latest swing low.

▲▼▼▲▼▲▼▲▼▼▲Marks on both sides in a range
5Inconclusive

Marks on both sides in a range

In a tight range up and down fractals stack up close together. They mark the edges of the range, not a trend.

Fractals formulaHow it is calculated.

Up fractal at t:hight>max(hight−2,hight−1,hight+1,hight+2)Down fractal at t:lowt<min(lowt−2,lowt−1,lowt+1,lowt+2)
STEP 1

Look two bars each side

For each bar, compare its high with the highs of the two bars before it and the two after it, and its low with their lows.

STEP 2

Mark the extremes

A high above all four is an up fractal; a low under all four is a down fractal. One wide bar can be both.

STEP 3

Wait for confirmation

A mark can only be drawn once the two later bars have closed, so the newest two bars never carry one.

Fractals settingsEvery setting, explained.

SettingDefaultRangeWhat it changes
Periods22 to 50Bars needed on each side. 2 gives Williams's five-bar pattern.
Up marksTeal #009688 ▲ above the high, smallAny colourDrawn above each up fractal.
Down marksRed #F44336 ▼ under the low, smallAny colourDrawn under each down fractal.
Setting
Periods
Default
2
Range
2 to 50
What it changes
Bars needed on each side. 2 gives Williams's five-bar pattern.
Setting
Up marks
Default
Teal #009688 ▲ above the high, small
Range
Any colour
What it changes
Drawn above each up fractal.
Setting
Down marks
Default
Red #F44336 ▼ under the low, small
Range
Any colour
What it changes
Drawn under each down fractal.
236 fractals 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.

Fractals strategiesUse it in 3 setups.

▲▼▼▲▼▲▼▲▼▲

Break of the last up fractal

Ifprice closes abovethe last up fractalthengo long

Williams placed a buy stop just above the latest up fractal. Many traders also want price on the right side of a trend filter first.

▼▲▼▲▼▲▲▲▼▼▼Stop under the last down fractal

Trail a stop under down fractals

While longkeep the stop underthe last down fractal

Each new down fractal in an uptrend lifts the stop to the newest swing low. The dashed stop line on this scene is an illustration, not part of the indicator.

▲▼▼▲▼▲▼▲▼▼▲

Step aside under the last down fractal

Ifprice closes underthe last down fractalthenclose the long

Losing the latest swing low is a common reason to step aside.

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

Fractals mistakesCommon mistakes.

▲▲▼▼The swing highMark confirmed here, two bars later

Treating the mark as live

The triangle appears two bars after the swing. Here the high printed two bars before its mark could be drawn.

▲▼▼▲▼▲▼▲▼▼▲Marks on both sides in a range

Trading every mark in a range

In a tight range marks pile up on both sides, and breaks of them reverse quickly.

▼▲▼▲▼▼▲▼▲Close under the down fractalBack above it

Expecting every break to hold

Here price closed under a down fractal and was back above it on the very next bar.

Fractals combinationsPair it with these.

Fractals FAQQuestions traders ask.

What are the default Fractals settings?

Periods 2: a bar must top the two bars on each side, the five-bar pattern Bill Williams described.

Do Williams Fractals repaint?

No. A mark is drawn only once the two later bars have closed, and then it stays. The cost is that it shows up two bars late.

What is an up fractal?

A bar whose high is higher than the highs of the two bars before and after it. It marks a swing high.

What is a down fractal?

A bar whose low is lower than the lows of the two bars before and after it. It marks a swing low.

Can one bar be both?

Yes. A wide bar with the highest high and the lowest low of its five can carry both marks.

What happens with equal highs?

On a flat top, the newest of up to five equal highs is marked, as TradingView does. Equal lows work the same way.

How did Bill Williams use fractals?

He placed an order just beyond the latest fractal and accepted the break only on the right side of his Alligator's teeth.

What does a larger Periods value do?

It needs more bars on each side, so only bigger swings are marked and each mark appears later.

Do fractals work on crypto?

Yes. They only use highs and lows, which every market has.

Are fractals leading or lagging?

Lagging by design: each mark needs two closed bars after the swing.

Related indicatorsMore bill williams tools.

All bill williams indicators

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

Works in your browser and on iPhone too.

Example market1h
Williams Fractals (2)
▲▼▲▼▲▲▲▼▼▼▼