PROTECTED SOURCE SCRIPT

CHoCH then BOS

358
This indicator implements a clean, rule-based market structure model that detects a Change of Character (CHoCH) followed by a confirmed Break of Structure (BOS), while explicitly preventing overlapping or premature signals. It uses pivot highs and lows to establish swing structure and maintains an internal bullish or bearish bias. A CHoCH is triggered only when price breaks the most recent swing in the opposite direction of the current structure, signaling a potential trend shift. Importantly, the script does not mark a BOS immediately after the CHoCH; instead, it waits for the first new pivot to form after the CHoCH and uses that pivot as a valid BOS level. A BOS is confirmed only when price subsequently breaks that post-CHoCH level, ensuring proper structural sequencing (CHoCH → pullback → BOS). Visual labels mark CHoCH (“C”) and BOS (“B”) events, while optional lines display the active BOS level being monitored. The result is a robust, non-repainting structure indicator designed to filter noise and highlight higher-quality trend confirmations rather than raw swing breaks

Declinazione di responsabilità

Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.