OPEN-SOURCE SCRIPT

BOS & ChoCh Market Structure

80
BOS/ChoCh Market Structure Indicator

This indicator identifies key market structure shifts using Break of Structure (BOS) and Change of Character (ChoCh) signals based on pivot point analysis.

Concept

Break of Structure (BOS) occurs when price breaks through a significant pivot level in the direction of the current trend, signaling trend continuation. A bullish BOS happens when price breaks above a pivot high while in an uptrend, while a bearish BOS occurs when price breaks below a pivot low during a downtrend.

Change of Character (ChoCh) signals a potential trend reversal. It occurs when price breaks against the prevailing trend - breaking above a pivot high while in a downtrend, or breaking below a pivot low while in an uptrend. This indicates the market structure is shifting.

How It Works

The indicator automatically detects swing highs and lows using configurable pivot strength. When price breaks these levels, it plots:
  • Color-coded labels (cyan for bullish breaks, red for bearish breaks)
  • Small horizontal lines marking the exact breakout level
  • Extended lines from pivot points showing key support/resistance levels


Settings

Pivot Strength - Number of candles on each side required to confirm a swing high/low (default: 5). Higher values identify more significant pivots but produce fewer signals.

Breakout Confirmation - Choose whether breakouts require a candle close beyond the level ("Close") or just a wick touch ("Wick").

Show BOS / Show ChoCh - Toggle visibility of Break of Structure and Change of Character signals independently.

Colors - Customize the colors for bullish (cyan) and bearish (red) signals.

Perfect for swing traders and market structure analysis.

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ ข้อกำหนดการใช้งาน