OPEN-SOURCE SCRIPT

Box Box Nguyen

475
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

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.