All indicators

Market Structure- ZigZag, Break of Structure & Order Blocks

May 13, 2025

Static chart image
Price Action BasedSupport and ResistanceSignalsCandlestickLiquidityMoving AveragesVolatility

The Market Structure- ZigZag, Break of Structure & Order Blocks indicator is a comprehensive market structure tool designed to provide a clear view of market behavior through price action and Smart Money Concepts (SMC). It integrates order block detection, structural breaks, and internal shifts into a unified framework to help traders identify institutional order flow and trend transitions.

Usage

The indicator can be used to map out the current market phase and identify high-probability zones of interest.

  • Order Blocks: The tool identifies supply and demand zones formed at structural turning points. Traders can use these as potential entry or reversal zones.
  • Market Structure (BOS & CHoCH): Horizontal lines mark Breaks of Structure (BOS), indicating trend continuation, and Change of Character (CHoCH), indicating potential trend reversals.
  • ZigZag Framework: The ZigZag lines connect major swing points, simplifying the chart and making it easier to identify Higher Highs (HH), Higher Lows (HL), Lower Lows (LL), and Lower Highs (LH).
  • Customization: Users can toggle between different "Internal Trigger" versions (SMA, ATR, Displacement, etc.) to refine how the indicator reacts to volatility and price movement.

Details

The script utilizes several logic modes for identifying structural shifts. Users can choose between "Internal Structure" and "External Structure" to define the sensitivity of the ZigZag and BOS detections. It also features multiple calculation versions:

  • Version 1 (Engulfing): Uses price action patterns for triggers.
  • Version 2-3 (SMA/ATR): Uses moving averages or volatility-based thresholds.
  • Version 4-6 (Displacement/Stalling): Detects institutional "displacement" (large candles) and price "stalling" to find significant turning points.

Settings

Main Settings

  • Timeframe: Allows the indicator to calculate structures based on a higher timeframe (HTF) while viewing on a lower timeframe.
  • Version: Selects the internal logic for structural triggers (Engulfing, SMA, ATR, Displacement, etc.).
  • Calculate Zig-Zag By: Choose between Internal or External structure logic.
  • Order Block Duration: Sets the number of bars a box is extended before disappearing.

Visibility & Styling

  • Show Order Blocks: Toggles for Bullish/Bearish Order Blocks and Inflection (Supply/Demand) zones.
  • Delete Mitigated/Broken Boxes: Keeps the chart clean by removing zones once price has retraced into them or broken through them.
  • BOS/CHoCH Lines: Toggle visibility for trend continuation and reversal labels.
  • ZigZag Styling: Customize the line width, color, and labels (HH/HL/LL/LH).

FAQ

  • How do I use this for multi-timeframe analysis? You can set the "Timeframe" input to a higher period (e.g., 1H) while looking at a 5-minute chart to see higher-level structural breaks and supply/demand zones.
  • What is the difference between BOS and CHoCH in this tool? BOS (Break of Structure) typically refers to a break in the direction of the current trend, while CHoCH (Change of Character) signals the first sign of a potential trend reversal.
  • How can I access Market Structure- ZigZag, Break of Structure & Order Blocks? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

Free indicator

Get free access to this indicator on the platforms below.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.