Core Concepts
Swing Points
The indicator uses a fractal-based algorithm to detect swing highs and swing lows. A swing high is a candle whose high is higher than the highs of the surrounding candles (controlled byswingLength). A swing low is the inverse.
These swing points form the skeleton of market structure — connecting them reveals the trend.
Break of Structure (BOS)
A BOS occurs when price breaks through a previous swing point in the direction of the existing trend. It confirms that the current trend is continuing:- Bullish BOS: Price breaks above a previous swing high during an uptrend. Higher high confirmed.
- Bearish BOS: Price breaks below a previous swing low during a downtrend. Lower low confirmed.
Change of Character (CHoCH)
A CHoCH occurs when price breaks through a swing point against the current trend direction. It is the first signal that the trend may be reversing:- Bullish CHoCH: During a downtrend, price breaks above a previous swing high. The sequence of lower highs is broken.
- Bearish CHoCH: During an uptrend, price breaks below a previous swing low. The sequence of higher lows is broken.
Swing Detection Settings
Break Detection Modes
ThebreakDetection parameter significantly affects signal behavior:
Using
close mode eliminates many false breakouts where price wicks through a level but closes back inside. This is the recommended setting for most traders.Display Settings
BOS Appearance
CHoCH Appearance
Swing Points Appearance
Zigzag Display
Alert Rules
Market Structure supports the following alert events:
Configure alert sounds and notifications in the global Alerts settings panel.
Practical Usage
Choosing Swing Length
TheswingLength parameter defines how “major” the detected swing points are:
Reading Structure in Context
Market structure tells you who is in control:- Series of bullish BOS = buyers are in control, trend is up. Look for longs at pullbacks.
- Series of bearish BOS = sellers are in control, trend is down. Look for shorts at rallies.
- CHoCH appears = control is shifting. The first CHoCH is a warning, not a signal.
- CHoCH + BOS in new direction = trend has likely reversed. Now look for entries with the new trend.
Confluence with Other Indicators
- Order Blocks: A CHoCH followed by a return to an order block at the break level is a classic SMC entry setup.
- FVG: A BOS often creates an FVG in the process. The FVG then becomes a re-entry zone on pullback.
- Absorption Alpha: Absorption at a swing high/low that subsequently produces a CHoCH confirms that institutions were active at that level.
Common Pitfalls
- Trading CHoCH in isolation: A single CHoCH in a strong trend is often a temporary fake-out. Wait for confirmation.
- Swing length too low in ranging markets: Very low
swingLengthin a sideways market produces constant BOS/CHoCH flips. IncreaseswingLengthor focus on higher timeframe structure. - Ignoring multi-timeframe structure: A CHoCH on the 5m chart is meaningless if the 1H structure is still strongly trending. Always check at least one timeframe higher.