All indicators

Williams Fractal

By LuxAlgoApr 13, 2020

Static chart image

The Williams Fractal marks objective swing points directly on the chart: an up fractal prints at a high flanked by lower highs on both sides, and a down fractal at a low flanked by higher lows, with each marker confirmed only after the flanking bars have completed. The default period of 2 requires two bars on either side of the extreme — Bill Williams' original five-bar pattern — and this build implements that plain, standard definition, requiring the extreme to strictly exceed every neighboring bar.

The appeal is mechanical objectivity: no drawing, no judgment — just rule-based local extremes feeding breakout triggers, trailing stops, and support and resistance levels.

How to Trade the Williams Fractal?

  • Up Fractal markers (triangles above the bar): confirmed swing highs — natural resistance references and classic locations for breakout buy stops.
  • Down Fractal markers (triangles below the bar): confirmed swing lows, serving as support references and the levels sell stops rest beneath.
  • A break beyond the most recent fractal: the classic Trading Chaos trigger, taken only in the direction of a separate trend filter.
  • Successive fractals as trailing anchors: in an uptrend, stepping a stop up behind each fresh down fractal ratchets risk behind structure.

Fractals print often — a two-bar flank is a low hurdle — so raw signals benefit from a directional filter.

Williams Fractal Settings

  • Periods (default 2): bars required on each side of the candidate extreme. The default reproduces the classic five-bar fractal; raising it yields fewer, more significant swings that confirm proportionally later. This is the build's only functional input — the marker colors are style options.

Frequently Asked Questions

Do Williams Fractals repaint?

No, but they lag. No marker can print until the flanking bars to the right of the extreme have completed, so each one is drawn that many bars behind the live edge — two at the default — and is fixed once printed. The Up Fractal Confirmed and Down Fractal Confirmed alerts fire at that confirmation moment, not at the extreme itself.

What is the best Periods setting?

The default of 2 matches the classic definition and is the natural starting point. Wider values print fewer, cleaner swings but confirm later, so the input chooses the swing size you work at rather than a best value.

How do fractals differ from a ZigZag?

A fractal is pure local bar geometry: any qualifying five-bar extreme counts, however small the move. A zigzag admits only reversals beyond a size threshold and never marks two highs or two lows in a row. Fractal markers are therefore denser and less selective — raw swing candidates for structure logic or a filter to refine.

Free indicator

Get free access to this indicator on the platforms below.

TradingView
NinjaTrader
MetaTrader 4/5

The Library is free. Quant makes it yours.

Pull any concept or indicator into Quant: rebuild it, retune it, or turn it into a backtested strategy of your own.