What this TradingView script does
Smart Money Bull/Bear Trap Detector is an indicator that identifies false breakouts and liquidity sweeps at key pivot levels to reveal trapped market participants. It solves the problem of getting caught in fakeouts by detecting when price wicks beyond a swing high or low but fails to close there, signaling a potential reversal. Signals are dynamically ranked from A to C based on the freshness of the pivot zone and the volume of the sweep, giving traders a clear edge in spotting high-probability Smart Money Concepts (SMC) setups.
🔵 HOW IT WORKS The indicator maps pivot zones, monitors them for trap conditions, and scores each trap based on time and volume:
1 — Pivot Zone Mapping
- Zone Creation: Uses Pivot Strength to identify swing highs and lows, drawing gradient resistance and support boxes that fade out horizontally over the Base Zone Length.
- Gradient Segments: The Gradient Segments per Zone input controls how many fading blocks make up each zone, providing a sleek visual representation of time decay.
2 — Trap Detection Logic
- Bull Traps (Failed Breakouts): Triggered when the high wicks above a resistance zone, but the candle closes back below it—trapping late buyers.
- Bear Traps (Failed Breakdowns): Triggered when the low wicks below a support zone, but the candle closes back above it—trapping late sellers.
- Zone Expiration: If Stop Detection After Zone Expiration is enabled, the indicator will no longer look for traps once the zone's base length has passed.
3 — Signal Ranking Engine
How traders can use it
Use Smart Money Bull/Bear Trap Detector as a chart context layer inside TradingView: read the structure it highlights, compare it with your market bias, and let the script narrow which moves deserve attention.
The strongest workflow is to combine the script with higher timeframe structure, volume context, and a repeatable execution plan instead of treating any single label as a standalone trade.




