Skip to content

Detector · TRADES · NODE

Market structure

Breaks of structure, shifts and swing failures, labeled at the bar they became known.

Strategy Builder: Market structure

What it shows

The detector reads the swings the ZigZag finds and marks three kinds of signal. Each is a line at the level of the swing it broke or swept, from the swing to the bar that did it, with a label at that end: above a swing high, below a swing low, and with a triangle pointing the signal’s way.

The three signals
SignalLineRule
BOSSolidBreak of structure: a close beyond the last swing in the trend’s direction. The trend goes on, or turns after an MSS.
MSSDashedMarket structure shift: the first close beyond the last swing against the trend. It warns the trend may turn.
SFPDottedSwing failure: a wick beyond the last swing that closes back inside and becomes the new swing.

How it works

A signal only counts swings the ZigZag has already confirmed, with its reversal of 1.5 ATR by default.

  1. 1A swing to break

    Once a swing low or high is confirmed, its price is the level the next signal is measured against.

  2. 2A wick through it, a close back inside

    When a bar’s wick goes beyond the swing and the bar closes back inside, that wick may become a swing failure. It is only a candidate while price is still near it.

  3. 3Known once price turns

    When price turns from the wick as far as the ZigZag needs for a swing, the wick becomes the new swing and the SFP is known, drawn dotted at the level it swept.

  4. 4A close against the trend

    The first close beyond the last swing against the trend is an MSS, drawn dashed. It warns that the trend may turn; a BOS in the old trend’s direction cancels the warning.

  5. 5A close with the trend

    A close beyond the last swing in the trend’s direction is a BOS, drawn solid. After an MSS, the next close in the new direction is a BOS too, and it turns the trend.

How to use it

Turn on Market structure in the Detectors menu. Its settings sketch the rule, say how many signals the loaded bars hold and switch each type on or off. Its swings are the ZigZag’s: Edit beside Swings opens the ZigZag settings, where a lower ATR multiplier finds more swings and so more signals. Runs on chooses the chart’s timeframe or a fixed one.

  • Wait for the label to lose its question mark: until then the signal may move or vanish.
  • Read an MSS as a warning, not a turn; the BOS that follows, or does not, settles it.
Market structure settings
SettingWhat changes
BOS, MSS and SFPShow or hide each type on the chart and in the markers list.
SwingsThe ZigZag’s settings, shared with the other swing detectors.
Label sizeThe text size of the BOS, MSS and SFP labels.

What it does not tell you

  • Until the swings it rests on are confirmed, and while its bar is still trading, a signal is drawn faded with a label ending in a question mark. It may move or vanish.
  • The signals describe closes against swing levels. They say nothing about who traded or why.
  • Another ZigZag setting or timeframe gives other swings, and so other signals.
  • A break of structure is a description, not a forecast. Test it before relying on it.

Test it in the Strategy Builder

Market structure passes when a confirmed BOS, MSS or SFP of the type and direction you pick became known within its lookback, from the bar it became known. It can run on a timeframe of its own.

Nodes to look for in the Strategy Builder’s palette:

  • Market structure

Other layers in this family

  • ZigZagThe swings of the session, joined high to low once price reverses by the set amount.
  • Chart patternsFlags, triangles, double tops and bottoms, head and shoulders, each with its target and where it fails.
  • Harmonic patternsGartley, Bat, Butterfly, Crab, Cypher and Shark: five swings in Fibonacci ratios, each with a zone and target.

Questions

A BOS is a close beyond the last swing in the trend’s direction: the trend goes on. An MSS is the first close beyond the last swing against the trend: a warning that it may turn.

The swings it rests on are not confirmed yet, or its bar is still trading. Until then the signal is drawn faded and may move or vanish; strategies read only confirmed signals.

See it on a real market

Trading Glass is in private beta and reads Binance data. Every layer described here runs in the chart on that data.