OPEN-SOURCE SCRIPT
SM Trap Detector โ Liquidity Sweeps & Institutional Reversals

Overview:
This script is designed to help traders detect Smart Money traps, liquidity grabs, and false breakouts with high precision.
Inspired by institutional trading logic (SMC, ICT, Wyckoff), this tool combines:
๐ฆ Liquidity Zone Mapping โ Detects stop hunt targets near highs/lows
๐จ Trap Candle Detection โ Identifies fakeouts using wick + volume logic
โ Reversal Confirmation โ Entry signals based on real market structure
๐งญ Dashboard Panel โ Always see the last trap type, price, and confirmation
๐ Real-Time Alerts โ Stay notified of traps and entry points

๐ง Logic Breakdown:
Trap Candle = Large wick, small body, volume spike, and sweep of a liquidity zone
Confirmed Entry = Reversal price action following the trap (engulfing-style)
๐ Best Used On:
Markets: Crypto, Forex, Stocks
Timeframes: No limitation but works best on 1H, 4H, Daily
๐ Suggested Use:
Trade only confirmed entries for best results
Place stops beyond wick highs/lows
Target previous structure or use RR-based exits
๐ Backtest Tip:
Use alerts + replay mode to manually validate past traps.
Note: Please backtest before using it for entry.
This script is designed to help traders detect Smart Money traps, liquidity grabs, and false breakouts with high precision.
Inspired by institutional trading logic (SMC, ICT, Wyckoff), this tool combines:
๐ฆ Liquidity Zone Mapping โ Detects stop hunt targets near highs/lows
๐จ Trap Candle Detection โ Identifies fakeouts using wick + volume logic
โ Reversal Confirmation โ Entry signals based on real market structure
๐งญ Dashboard Panel โ Always see the last trap type, price, and confirmation
๐ Real-Time Alerts โ Stay notified of traps and entry points
๐ง Logic Breakdown:
Trap Candle = Large wick, small body, volume spike, and sweep of a liquidity zone
Confirmed Entry = Reversal price action following the trap (engulfing-style)
๐ Best Used On:
Markets: Crypto, Forex, Stocks
Timeframes: No limitation but works best on 1H, 4H, Daily
๐ Suggested Use:
Trade only confirmed entries for best results
Place stops beyond wick highs/lows
Target previous structure or use RR-based exits
๐ Backtest Tip:
Use alerts + replay mode to manually validate past traps.
Note: Please backtest before using it for entry.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.