Market Structure & Price Action Guide

Break of Structure (BOS) Trading: Definition, Rules, and Strategy

A break of structure (BOS) is a price-action label for a break beyond a selected swing in the direction of an established trend. This page uses a completed-bar close above the reference high in an uptrend, or below the reference low in a downtrend. It describes an observed continuation break; it does not establish what price will do next.

See the decision guide

What is a break of structure in trading?

Higher highs and higher lows are one way to define an uptrend; lower highs and lower lows define a downtrend. A usable BOS rule also needs a precise way to select those swings. Two indicators using different pivot lengths can label different breaks on the same chart. A range breakout has no established directional trend by definition, so record it separately until your trend-state rule changes. These are analytical conventions, not exchange classifications.

Prior stateReference levelClose-based eventWhat remains unknown
UptrendPreviously confirmed swing highClose above that high: bullish BOSWhether the next bars continue upward
DowntrendPreviously confirmed swing lowClose below that low: bearish BOSWhether the next bars continue downward
Range or uninitializedSelected range boundaryRange breakout, recorded separatelyWhether a trend develops

Bullish BOS vs Bearish BOS mechanics

The direction of a break is visible in price data. The identity, intent and remaining orders of market participants are not. A bullish break can fail on the next bar; a bearish break can reverse without returning to a chosen entry zone. Comparing an immediate entry with a retracement entry requires separate rules and separate accounting for trades that never fill.

  • Bullish rule: an uptrend must already exist, and the completed close must exceed the selected high
  • Bearish rule: a downtrend must already exist, and the completed close must fall below the selected low
  • One-event rule: mark a reference level as consumed after its first qualifying break if repeated signals are not intended
  • Invalidation rule: define which opposing swing changes the trend state; do not select it retrospectively

Closing-price breaks versus wick breaches

A closing-price rule requires only the close beyond the level, not the entire candle body. For example, an open below a swing high and a close above it qualifies under this rule. A wick-only breach does not. Calling that breach a liquidity sweep is an SMC interpretation; OHLC bars alone do not show whether stops traded or whether anyone engineered the move. Waiting for the close changes signal timing but cannot eliminate failed breakouts.

Observed price actionClassification hereWhat it establishesTest treatment
Close beyond the reference swingQualifying BOS if prior trend agreesThe completed closing price crossed the levelRecord signal and next eligible order time
Wick beyond the level, close back insideNo close-based BOSAn intrabar excursion and returnDo not count a trade under this rule
Close exactly at the levelNo strict breakEquality, not a greater/less-than eventApply the same equality rule in all samples

Major swing BOS vs minor internal BOS

Major and internal structure are relative to the swing detector and timeframe. A five-minute uptrend can occur inside a declining daily swing. Higher-timeframe alignment is an optional strategy filter, not evidence of a higher win probability by itself. If daily information guides an intraday entry, use only daily values available at that moment; the final daily close is not known during the session.

  • Record reference timeframe, entry timeframe and pivot lengths in the test specification
  • Use confirmed higher-timeframe values when the method requires a completed higher-timeframe bar
  • Compare an alignment filter against the same rules without it, including reduced trade count
  • Keep conflicting-timeframe examples and losing trades in the evaluation

Building a break of structure trading strategy

Start with a signal specification, then define an order model. A BOS label alone has no entry price, stop, target or holding period. Order blocks and fair value gaps are optional additional conditions; they are not prerequisites for the definition used here. The following workflow can be tested without assuming that every break retraces or that every touched limit fills.

  • Context: define trend state from confirmed swings and specify how the first state is initialized
  • Signal: freeze the reference swing, require a completed close beyond it and timestamp when it became observable
  • Entry: choose next-bar market execution or a retracement order with an explicit expiry; record missed entries
  • Exit and evaluation: define stop, target, time exit, sizing, commission and slippage; reserve unseen data and retain failed breaks

Quantifying BOS rules in Pine Script

Pineify AI Coding Agent can draft Pine Script from a written BOS specification. Compilation and chart comparison are still necessary: syntactically valid code can use future information or implement a different swing rule. A pivot with five bars on its right becomes available five bars after the pivot bar. Drawing a label back on that earlier bar does not make the signal tradable then.

  • Specify left/right pivot lengths, equality handling and the confirmation timestamp
  • A comparison such as close > swing_high can change while the realtime bar is open; require bar confirmation when intended
  • Review higher-timeframe requests and avoid future-value leakage; bar-close gating alone does not solve every repainting cause
  • Use TradingView strategy settings for costs and fills, then compare historical, replay and forward observations
Where Pineify fits

AI Chart Analysis

Upload a chart screenshot for AI-assisted observations about visible swings and candidate structure levels. The image is not a live market connection; verify the markings against your chosen rules. Account and plan limits apply.

Also useful: Pine Script AI Coding Agent. Draft an indicator or strategy from explicit swing and confirmation rules, then review its code, timing and TradingView results. Generated code is not evidence of a profitable system.

Explore AI Chart Analysis

Frequently asked questions

Educational information only. Market structure analysis and trading strategies carry substantial risk of loss across all asset classes. Simulated results do not guarantee future performance.

Sources and verification