OPEN-SOURCE SCRIPT
Box Box Nguyen

This indicator identifies consolidation boxes based on liquidity sweeps.
Conditions:
- A valid box requires:
+ 2 valid upper touches OR 2 internal upper sweeps
+ 2 valid lower touches OR 2 internal lower sweeps
- Both upper and lower conditions must be satisfied
Breakout logic:
- Real breakout: 2 consecutive candles close outside the box
- False breakout:
+ Wick breaks but closes back inside
+ First candle closes outside, second candle closes back inside
Features:
- Detects smart money liquidity zones
- Filters fake breakouts
- Avoids overlapping boxes
Best used on:
- M15 – H1 timeframe
- Forex / Crypto markets
Conditions:
- A valid box requires:
+ 2 valid upper touches OR 2 internal upper sweeps
+ 2 valid lower touches OR 2 internal lower sweeps
- Both upper and lower conditions must be satisfied
Breakout logic:
- Real breakout: 2 consecutive candles close outside the box
- False breakout:
+ Wick breaks but closes back inside
+ First candle closes outside, second candle closes back inside
Features:
- Detects smart money liquidity zones
- Filters fake breakouts
- Avoids overlapping boxes
Best used on:
- M15 – H1 timeframe
- Forex / Crypto markets
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.