OPEN-SOURCE SCRIPT
Liquidity Sweep Detector

Most traders place their stops at obvious levels — and get hunted every single time. This indicator shows you exactly where those traps are set and when they get triggered.
Liquidity Sweep Detector maps the zones where institutional players hunt stop losses, then flags the precise moment a sweep happens — so you can stop being the liquidity and start trading alongside the ones taking it.
🎯 Core Features
Multi-Zone Liquidity Map — Tracks up to 16 simultaneous support and resistance zones. While other tools only show you the latest swing, this gives you the full picture of where liquidity is stacked above and below price. Knowing where the traps are is half the battle.
Zone Strength Scoring — Every time a zone gets tested without breaking, it visually strengthens. A zone that's been tested 3+ times is a level institutions are actively defending — these are the highest-probability reaction points on your chart.
Sweep Detection Engine — The moment price wicks through a zone and closes back inside, you get a clear signal. No lag, no guessing. That wick-and-snap-back pattern is the signature move of smart money grabbing liquidity before reversing — and now it's flagged automatically.
Invalidated Zone Tracking — Broken zones auto-hide to keep your chart clean. But toggle them on and you'll see historical structure that most traders miss — levels that flip from support to resistance (and vice versa) are some of the most powerful setups in the market.
Live Bias Detection — The dashboard tells you which side is getting hunted more. More bull sweeps = support getting raided = potential accumulation happening under the surface. More bear sweeps = distribution. This context changes how you read every candle.
🔬 Signal Quality Filters
Not all sweeps are created equal. Three optional filters let you dial in only the highest-conviction signals:
Trend Filter (EMA) — Removes counter-trend noise. Only see sweeps that align with the dominant trend — these are the ones where institutions are reloading, not just stopping out.
Volume Spike — Requires above-average volume on the sweep bar. If smart money actually grabbed liquidity, the volume proves it.
Wick Rejection — Filters for strong rejection candles. Big wick + small body = the market tried to break through and got violently rejected.
All three are off by default. Start clean, then turn them on one by one and watch the noise disappear.
📊 Real-Time Dashboard
Everything you need at a glance:
Active zone count (resistance & support)
Distance to nearest zones — turns red when you're within 1% of a level
Total sweeps per direction
Market bias (Bullish / Bearish / Neutral)
Active filter status
Ticker & timeframe
⚙️ How Smart Traders Use This
Stop placement — See where liquidity clusters sit. Place your stops beyond the zone, not where everyone else gets hunted.
Entry timing — Don't front-run levels. Wait for the sweep — that's your confirmation that stops have been cleared and the real move can begin.
Zone strength = conviction — A zone tested 3x that finally gets swept is the highest-probability reversal setup this indicator produces.
Bias as a filter — If the dashboard shows bearish bias, think twice before going long. The market is telling you something.
Combine with your strategy — This isn't a standalone system. It's a context layer that makes every other setup you trade sharper.
⏱️ Best Timeframes
Works on any ticker, any timeframe. Strongest on 4H, Daily, and 1D where institutional footprints are most visible. On lower timeframes, enable the quality filters to cut through the noise.
🔧 Key Settings
Pivot Lookback (8) — Controls zone sensitivity. Lower = more zones, more signals. Higher = fewer but stronger levels.
Max Active Zones (8) — Up to 16 total zones tracked simultaneously.
Zone Range — "Wick Rejection" for tight zones, "Full Bar" for wider coverage.
Show Invalidated Zones — Reveal broken levels as faded dashed zones for full structural context.
🔗 Why This Exists
Every liquidity indicator out there stops at "here's a zone." That's not enough. You need to know when the zone gets swept, how strong it is, what the bias looks like, and whether the signal is worth taking. That's what this does.
Built for traders who are tired of being the exit liquidity.
This is the first release from DefinedEdge. Follow for the next drop!
⚡ DefinedEdge
Liquidity Sweep Detector maps the zones where institutional players hunt stop losses, then flags the precise moment a sweep happens — so you can stop being the liquidity and start trading alongside the ones taking it.
🎯 Core Features
Multi-Zone Liquidity Map — Tracks up to 16 simultaneous support and resistance zones. While other tools only show you the latest swing, this gives you the full picture of where liquidity is stacked above and below price. Knowing where the traps are is half the battle.
Zone Strength Scoring — Every time a zone gets tested without breaking, it visually strengthens. A zone that's been tested 3+ times is a level institutions are actively defending — these are the highest-probability reaction points on your chart.
Sweep Detection Engine — The moment price wicks through a zone and closes back inside, you get a clear signal. No lag, no guessing. That wick-and-snap-back pattern is the signature move of smart money grabbing liquidity before reversing — and now it's flagged automatically.
Invalidated Zone Tracking — Broken zones auto-hide to keep your chart clean. But toggle them on and you'll see historical structure that most traders miss — levels that flip from support to resistance (and vice versa) are some of the most powerful setups in the market.
Live Bias Detection — The dashboard tells you which side is getting hunted more. More bull sweeps = support getting raided = potential accumulation happening under the surface. More bear sweeps = distribution. This context changes how you read every candle.
🔬 Signal Quality Filters
Not all sweeps are created equal. Three optional filters let you dial in only the highest-conviction signals:
Trend Filter (EMA) — Removes counter-trend noise. Only see sweeps that align with the dominant trend — these are the ones where institutions are reloading, not just stopping out.
Volume Spike — Requires above-average volume on the sweep bar. If smart money actually grabbed liquidity, the volume proves it.
Wick Rejection — Filters for strong rejection candles. Big wick + small body = the market tried to break through and got violently rejected.
All three are off by default. Start clean, then turn them on one by one and watch the noise disappear.
📊 Real-Time Dashboard
Everything you need at a glance:
Active zone count (resistance & support)
Distance to nearest zones — turns red when you're within 1% of a level
Total sweeps per direction
Market bias (Bullish / Bearish / Neutral)
Active filter status
Ticker & timeframe
⚙️ How Smart Traders Use This
Stop placement — See where liquidity clusters sit. Place your stops beyond the zone, not where everyone else gets hunted.
Entry timing — Don't front-run levels. Wait for the sweep — that's your confirmation that stops have been cleared and the real move can begin.
Zone strength = conviction — A zone tested 3x that finally gets swept is the highest-probability reversal setup this indicator produces.
Bias as a filter — If the dashboard shows bearish bias, think twice before going long. The market is telling you something.
Combine with your strategy — This isn't a standalone system. It's a context layer that makes every other setup you trade sharper.
⏱️ Best Timeframes
Works on any ticker, any timeframe. Strongest on 4H, Daily, and 1D where institutional footprints are most visible. On lower timeframes, enable the quality filters to cut through the noise.
🔧 Key Settings
Pivot Lookback (8) — Controls zone sensitivity. Lower = more zones, more signals. Higher = fewer but stronger levels.
Max Active Zones (8) — Up to 16 total zones tracked simultaneously.
Zone Range — "Wick Rejection" for tight zones, "Full Bar" for wider coverage.
Show Invalidated Zones — Reveal broken levels as faded dashed zones for full structural context.
🔗 Why This Exists
Every liquidity indicator out there stops at "here's a zone." That's not enough. You need to know when the zone gets swept, how strong it is, what the bias looks like, and whether the signal is worth taking. That's what this does.
Built for traders who are tired of being the exit liquidity.
This is the first release from DefinedEdge. Follow for the next drop!
⚡ DefinedEdge
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.