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)
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.