Indicators
Williams Fractals Indicator Explained
How Bill Williams fractals mark local highs and lows, how to use them for stops and breakouts, and how to automate fractals in Setup.Cash.
Featured image placeholder
/og/setup-cash-og.svg
Fractals, from Bill Williams, mark the simplest structural fact on a chart: a bar whose high is higher than the bars around it (a fractal high), or whose low is lower than its neighbors (a fractal low). String them together and you can see market structure — higher highs, lower lows — without drawing a single line by hand.
How Fractals Work
With the default length of 2, a fractal high is a bar with a higher high than the 2 bars before and the 2 bars after it. A fractal low is the mirror image. Two things follow:
- Fractals confirm only after the following bars close — they mark structure, they don't predict it.
- Every confirmed fractal is a real local turning point that the market actually respected.
How to Trade Them
1. Breakout entries. Buy when price takes out the most recent fractal high — structure is shifting upward. Bill Williams paired this with his Alligator (available in our extended library) as a trend filter.
2. Stop placement. Trail stops behind the most recent fractal low in an uptrend. Structure-based stops survive noise better than fixed-pip stops.
3. Structure tracking. Rising fractal highs and rising fractal lows = uptrend; when a fractal low breaks, the structure argument for longs is gone.
Building It in Setup.Cash
Add Fractals in the strategy builder — it emits Fractal High and Fractal Low events you can condition on directly. Pair with ADX so you only trade fractal breaks when a trend has strength behind it.
Tuning
- Length 2: the classic 5-bar fractal.
- Longer (3–5): stronger, rarer swing points — better for swing trading.
Related Reading
Fractals are the atoms of market structure. The Swing High/Low Detector builds on the same idea with configurable lookback, and Support/Resistance Zones clusters those swings into tradeable zones. Backtest fractal breakouts per market — behavior differs a lot between forex and crypto.
Related Posts
View allIndicators
Automated Support & Resistance Zones for Trading Bots
How the Support/Resistance Zones indicator builds zones from swing pivots and ATR, and how to trade zone bounces and breaks in Setup.Cash.
2 min read · 303 words
Indicators
Market Structure Tools: Smart Money Concepts, ZigZag & More
How the SMC, ZigZag, Variable Heat Map, and Archer MA Trends indicators automate market structure analysis in Setup.Cash trading bots.
2 min read · 316 words
Indicators
Smart Money Concepts (SMC) Indicator Explained
How the SMC indicator automates break of structure, change of character, and order blocks for bots in Setup.Cash.
2 min read · 207 words
Indicators
Swing High/Low Detector: Trading Market Structure
How the swing high/low detector finds structural turning points, how bots trade structure breaks, and how to use it in Setup.Cash.
2 min read · 339 words
Start here
Build your trading bot workflow with structure
Use Setup.Cash to create, backtest, and paper trade rule-based strategies without relying on guesswork. Not financial advice. Trading involves risk.