OPEN-SOURCE SCRIPT
Smart Money Liquidation Hunter [No Repaint] - PhenLabs

📊Smart Money Liquidation Hunter [No Repaint] - PhenLabs

Retail traders place stop losses at “obvious” levels. Smart Money knows this. They deliberately push price through these levels to trigger your stops, collect liquidity, then reverse for the real move. This is called stop hunting or liquidity engineering. While most traders get stopped out and watch the market move without them, professionals are entering where YOU just exited.
OVERVIEW
The Smart Money Liquidation Hunter identifies institutional liquidity grabs by detecting three simultaneous conditions: a sweep of key liquidity pools, an immediate reversal with volume confirmation, and structural alignment with the Higher Timeframe (HTF) trend.
Unlike standard indicators that repaint or lag, this script uses strict non-repainting logic for both signal generation and HTF filtering. It includes a built-in Quality Scoring System (0-100) that evaluates every setup based on sweep depth, volume intensity, and structural confluence (Order Blocks & FVGs).
🔷 MATHEMATICAL FOUNDATION
The script operates on a 4-Layer Detection Algorithm:
🔶 THE INSTITUTIONAL PLAYBOOK
The indicator visualizes the three phases of a liquidity trap:
Phase 1: The Inducement (Purple Zones)
The script draws dashed purple boxes at swing points where retail stops are resting.
Visual: “BSL” (Buy-Side Liquidity) / “SSL” (Sell-Side Liquidity)
Phase 2: The Trap (⚡ Lightning Bolt)
Price aggressively pushes into the zone to trigger stops. The script marks this with a lightning bolt icon when the candle closes back inside the range, confirming the trap.
Phase 3: The Reversal (Entry Signal)
Once the trap is confirmed and structural requirements are met (HTF trend + OB/FVG retest), a buy or sell signal is generated.
⚙️ SETTINGS GUIDE
This version has been optimized for clean charts (“Decluttered”).
📈 TRADING WORKFLOW
⚠️ RISK DISCLAIMER
This indicator identifies high-probability setups based on historical institutional patterns. However, no indicator guarantees future results. Smart money can accumulate positions through multiple sweeps before the true reversal occurs. Always use proper risk management and wait for candle closes.
Retail traders place stop losses at “obvious” levels. Smart Money knows this. They deliberately push price through these levels to trigger your stops, collect liquidity, then reverse for the real move. This is called stop hunting or liquidity engineering. While most traders get stopped out and watch the market move without them, professionals are entering where YOU just exited.
OVERVIEW
The Smart Money Liquidation Hunter identifies institutional liquidity grabs by detecting three simultaneous conditions: a sweep of key liquidity pools, an immediate reversal with volume confirmation, and structural alignment with the Higher Timeframe (HTF) trend.
Unlike standard indicators that repaint or lag, this script uses strict non-repainting logic for both signal generation and HTF filtering. It includes a built-in Quality Scoring System (0-100) that evaluates every setup based on sweep depth, volume intensity, and structural confluence (Order Blocks & FVGs).
🔷 MATHEMATICAL FOUNDATION
The script operates on a 4-Layer Detection Algorithm:
- Layer 1: Liquidity Mapping (Pools)
Scans the last 50-200 bars for clusters of Equal Highs (Buy-Side Liquidity) or Equal Lows (Sell-Side Liquidity).
Formula: |High - High[j]| ≤ Tick Tolerance (Default: 3 ticks)
Optimization: Nearby zones are automatically merged to prevent chart clutter.
* Layer 2: Sweep Detection & Confirmation
Detects when price wicks beyond a pool by a minimum distance but closes back inside within 1-3 bars. This confirms a “Stop Hunt” rather than a breakout.
Volume Validation: Volume[sweep] ≥ SMA(Volume, 20) × 1.5
* Layer 3: Structural Confluence
Before generating a signal, the script checks for:
- HTF Trend: 1H EMA Filter (Non-repainting using confirmed bars).
- Order Blocks (OB): The last opposite-colored candle before the sweep.
- Fair Value Gaps (FVG): Imbalances created during the reversal.
Note: OBs and FVGs are calculated for signal logic even if their visual toggles are off.
* Layer 4: Quality Scoring (0-100)
Every signal is assigned a quality score based on:
- Sweep Depth (25 pts)
- Volume Spike (25 pts)
- HTF Trend Alignment (25 pts)
- OB/FVG Confluence (25 pts)
🔶 THE INSTITUTIONAL PLAYBOOK
The indicator visualizes the three phases of a liquidity trap:
Phase 1: The Inducement (Purple Zones)
The script draws dashed purple boxes at swing points where retail stops are resting.
Visual: “BSL” (Buy-Side Liquidity) / “SSL” (Sell-Side Liquidity)
Phase 2: The Trap (⚡ Lightning Bolt)
Price aggressively pushes into the zone to trigger stops. The script marks this with a lightning bolt icon when the candle closes back inside the range, confirming the trap.
Phase 3: The Reversal (Entry Signal)
Once the trap is confirmed and structural requirements are met (HTF trend + OB/FVG retest), a buy or sell signal is generated.
⚙️ SETTINGS GUIDE
This version has been optimized for clean charts (“Decluttered”).
- Liquidity Lookback (Default: 50): How far back to scan for swing points. Increase for major levels only.
- Max Liquidity Pools (Default: 8): Keeps your chart clean by showing only the strongest, most recent zones.
- Min Ticks Between Zones (Default: 10): Merges nearby levels to prevent “zone stacking.”
- Compact Labels (True/False):
True: Shows minimal tags like “L 15200 Q:85” (Recommended for 1m timeframe).
False: Shows full details including Entry, SL, TP, and Risk/Reward. - Show Order Blocks (Default: Off): Even when OFF, the script uses OB data to calculate signals. Turn ON if you want to see the specific zones.
📈 TRADING WORKFLOW
- Wait for a Purple Liquidity Zone (BSL or SSL) to form.
- Monitor for a Sweep (⚡) where price wicks the level and closes back.
- Check the Dashboard (Top Right). Ensure HTF Trend matches your direction.
- Entry: Wait for the “LONG” or “SHORT” label. This appears when price retests the Order Block or FVG created by the sweep.
- Stop Loss: Place just beyond the sweep wick (indicated by the red dotted line or signal tooltip).
- Target: Aim for the opposing liquidity pool or 3:1 RR.
⚠️ RISK DISCLAIMER
This indicator identifies high-probability setups based on historical institutional patterns. However, no indicator guarantees future results. Smart money can accumulate positions through multiple sweeps before the true reversal occurs. Always use proper risk management and wait for candle closes.
Does it repaint?
No. All signals are permanent once the bar closes. The HTF filter uses confirmed closed data from the previous Higher Timeframe bar to prevent future-leak/repainting.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
TradingView Charting w/ Crypto Systems: phenlabs.com
Join our growing community: discord.gg/phen
All content provided by PhenLabs is for informational & educational purposes only. Past performance does not guarantee future results.
Join our growing community: discord.gg/phen
All content provided by PhenLabs is for informational & educational purposes only. Past performance does not guarantee future results.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
TradingView Charting w/ Crypto Systems: phenlabs.com
Join our growing community: discord.gg/phen
All content provided by PhenLabs is for informational & educational purposes only. Past performance does not guarantee future results.
Join our growing community: discord.gg/phen
All content provided by PhenLabs is for informational & educational purposes only. Past performance does not guarantee future results.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.