OPEN-SOURCE SCRIPT
Safer Reversal: CHoCH & Div 1st BoS Entry & Exits & Pro Features

Professional traders (in ICT/SMC frameworks) often exit reversal trades using these logic layers for better risk control and to avoid holding into reversals:
Opposing CHoCH → Strongest exit/reversal warning: If you’re in a bullish trade and a bearish CHoCH forms (breaks structure against your direction), it’s time to exit fully or scale out aggressively. This signals the new trend might be over or reversing.
Failed BoS / Lack of Continuation → If no new BoS occurs for many bars after entry (e.g., 10–20 bars, adjustable), momentum is fading → partial or full exit.
Target Zones → Common exits at next major POI: e.g., opposite-side liquidity (equal highs/lows), recent swing extremes, or a fixed RR (like 1:2 or 1:3 from entry).
Trailing via Swings → After each new BoS in your direction, trail stop to the recent swing low/high (or below last BoS level) for letting winners run.
Other Pro Touches:
Volume filter on entry BoS (require above-average volume for confirmation).
RSI extreme check (e.g., exit if RSI hits overbought/oversold in your trade direction after entry).
Alerts for exits (“EXIT BUY - Opposing CHoCH” etc.).
Opposing CHoCH → Strongest exit/reversal warning: If you’re in a bullish trade and a bearish CHoCH forms (breaks structure against your direction), it’s time to exit fully or scale out aggressively. This signals the new trend might be over or reversing.
Failed BoS / Lack of Continuation → If no new BoS occurs for many bars after entry (e.g., 10–20 bars, adjustable), momentum is fading → partial or full exit.
Target Zones → Common exits at next major POI: e.g., opposite-side liquidity (equal highs/lows), recent swing extremes, or a fixed RR (like 1:2 or 1:3 from entry).
Trailing via Swings → After each new BoS in your direction, trail stop to the recent swing low/high (or below last BoS level) for letting winners run.
Other Pro Touches:
Volume filter on entry BoS (require above-average volume for confirmation).
RSI extreme check (e.g., exit if RSI hits overbought/oversold in your trade direction after entry).
Alerts for exits (“EXIT BUY - Opposing CHoCH” etc.).
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
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.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
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.