Skip to content
All library documents

Williams Fractals for Structure-Based Trailing Stops

Article TradingView scripts

Summary

This indicator identifies Williams high and low fractals by comparing a candidate bar with configurable numbers of bars before and after it. Once confirmed, a high fractal can set a short-side stop and a low fractal a long-side stop. The stops can include a percentage buffer, then trail downward or upward as new fractals appear. Users can choose whether a stop flips when price crosses it intrabar or when the candle closes beyond it, and alerts mark stop crossings and newly confirmed fractals.

Fractals require future bars for confirmation, so the plotted marker appears retrospectively on the bar where the turning point formed. The author describes this as repainting at confirmation, while stating that confirmed historical markers are not subsequently changed. The indicator is presented as a way to visualize approximate market structure, not as a standalone entry and exit system. Its usefulness depends on timeframe, confirmation delay, price scale, and how the user handles stop execution; no performance results are supplied.

Key ideas

  • A Williams fractal is confirmed by comparing its candidate high or low with surrounding bars.
  • The stop level resets to the latest confirmed opposite-side fractal, optionally adjusted by a percentage buffer.
  • Long and short trails move in opposite directions and can flip on a wick crossing or a close beyond the stop.
  • Fractal markers are back-plotted only after the required forward bars confirm them.
  • The indicator is intended for market-structure context rather than standalone trade signals.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.