OPEN-SOURCE SCRIPT
BOS mark-out (by Lumiere)

Advanced BOS Detection with Strict Swing Confirmation
This indicator implements BOS detection with several unique features:
🔹 Dual-Candle Swing Validation - Unlike most BOS indicators that use single candle swings, this uses a two-candle confirmation for swing highs/lows, analyzing both the candle wicks and body transitions.
🔹 Directional Lock System - Implements a state machine that prevents duplicate signals until an opposite-direction BOS occurs, reducing noise.
🔹 Precision Wick Analysis - Compares wicks between the reversal candle and confirmation candle to identify the true swing point.
🔹 Real-Time Update & Live Market Adaptation – The indicator continuously monitors price action and instantly updates BOS signals as new candles form, ensuring you never miss a BOS.
How It Differs From Other BOS Indicators:
Usage Examples:
🟦 Bullish BOS:
A green candle closes, followed by a red candle. This will be the new high, and if the next candle closes above the highest wick of those two, it will be a BOS (only if we had a bearish BOS before)
🟥 Bearish BOS:
A red candle closes, followed by a green candle. This will be the new low, and if the next candle closes below the lowest wick of those two, it will be a BOS (only if we had a Bullish BOS before)
This indicator implements BOS detection with several unique features:
🔹 Dual-Candle Swing Validation - Unlike most BOS indicators that use single candle swings, this uses a two-candle confirmation for swing highs/lows, analyzing both the candle wicks and body transitions.
🔹 Directional Lock System - Implements a state machine that prevents duplicate signals until an opposite-direction BOS occurs, reducing noise.
🔹 Precision Wick Analysis - Compares wicks between the reversal candle and confirmation candle to identify the true swing point.
🔹 Real-Time Update & Live Market Adaptation – The indicator continuously monitors price action and instantly updates BOS signals as new candles form, ensuring you never miss a BOS.
How It Differs From Other BOS Indicators:
- Most public BOS indicators use simple HH/HL or LH/LL detection.
- Many don't implement the directional locking mechanism.
- Few use the two-candle wick comparison approach.
- Wick-Based Precision uses the extreme wicks of two candles (not just the body).
- Strict Confirmation requires a close beyond the swing point (no "wick breaks" counted).
Usage Examples:
🟦 Bullish BOS:
A green candle closes, followed by a red candle. This will be the new high, and if the next candle closes above the highest wick of those two, it will be a BOS (only if we had a bearish BOS before)
🟥 Bearish BOS:
A red candle closes, followed by a green candle. This will be the new low, and if the next candle closes below the lowest wick of those two, it will be a BOS (only if we had a Bullish BOS before)
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.