All indicators

Market Structure: BoS & CHoCH

May 4, 2025

Static chart image
Price Action BasedSignalsPivot Based (Retrospective)

The Market Structure: BoS & CHoCH indicator is a technical analysis tool designed to automatically identify and visualize swing points and structural shifts on your chart. It provides real-time labeling of Higher Highs (HH), Higher Lows (HL), Lower Highs (LH), and Lower Lows (LL) to help traders interpret price action and trend direction.

Usage

The script is applicable across various timeframes and assets to assist in technical analysis. Users can observe the following visual outputs:

  • Swing Identification: The tool identifies pivots and marks them with solid lines.
  • Structure Labels: Every confirmed swing is labeled based on its relationship to the previous swing (HH, LH, HL, LL).
  • BoS (Break of Structure): These labels appear during trend continuation. For instance, a bullish BoS occurs when price breaks above a previous Higher High.
  • CHoCH (Change of Character): These labels indicate a potential trend reversal. A bullish CHoCH occurs when price breaks a previous high while in a bearish trend.

To filter out market noise, users can increase the "Swing Sensitivity" setting, which requires more bars to confirm a local top or bottom.

Details

The indicator utilizes a central lookback mechanism to confirm swing highs and lows. A swing high is confirmed when a bar's high is the highest within a specified range of bars both before and after it.

Once these points are established, the script compares the current swing level with the preceding one to determine the market structure. If the trend changes from bearish to bullish (or vice-versa), a CHoCH is triggered. If the trend persists in the same direction but breaches a previous structural level, a BoS is signaled.

Settings

  • Swing Sensitivity: Determines the number of bars required to confirm a swing point. Higher values result in more significant, but fewer, signals.
  • Show Labels: Toggles the visibility of the HH, LH, HL, LL, BoS, and CHoCH text labels.
  • Show Lines: Toggles the horizontal lines drawn at the price levels of confirmed swing points.

FAQ

How do I access Market Structure: BoS & CHoCH?

You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

What is the difference between BoS and CHoCH?

BoS (Break of Structure) signifies the continuation of the current trend, while CHoCH (Change of Character) signals a potential shift or reversal in the market trend.

Does the indicator repaint?

The indicator uses a lookback period defined by the "Swing Sensitivity" to confirm pivots. This means signals for swing points and structural breaks will appear with a slight delay (equal to the sensitivity value) once the required number of bars has closed to confirm the high or low.

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.