OPEN-SOURCE SCRIPT
Diupdate Liquidity Hunter Heatmap

Liquidity Hunter (GPS Companion Tool)
Liquidity Hunter is a specialized script designed to help traders visualize and track potential liquidation zones, clusters, and imbalance traps in real-time. It is particularly useful for scalpers and short-term traders who rely on liquidity sweeps, stop hunts, and reversion plays.
This tool does not replicate open-source liquidation trackers. Instead, it uses a proprietary combination of volume surges, candle displacement, VWAP deviation, and high-timeframe wicks to infer areas of trapped traders and display them with clear, color-coded markers.
Key Features:
โข Real-Time Liquidation Estimates: Detects where major stop losses (and potential liquidations) may have occurred, based on proprietary volume + price action logic.
โข Cluster Strength Bubbles: Visual bubbles (scaled by cluster size) show where liquidations are stacking. Purple for bearish, white for bullish โ intensity reflects strength.
โข Pre-Liquidation Warning Zones: Highlights areas where price is likely to sweep liquidity before reversing, helping traders avoid chasing moves.
โข Dollar-Based Labels (Optional): Displays the estimated value liquidated, helping traders size the significance of a move (e.g., $8.4M).
โข Minimal Clutter Mode: Designed for intraday clarity โ hides excess lines and uses bubbles, not shapes, for cleaner visualization.
Liquidity Hunter is a specialized script designed to help traders visualize and track potential liquidation zones, clusters, and imbalance traps in real-time. It is particularly useful for scalpers and short-term traders who rely on liquidity sweeps, stop hunts, and reversion plays.
This tool does not replicate open-source liquidation trackers. Instead, it uses a proprietary combination of volume surges, candle displacement, VWAP deviation, and high-timeframe wicks to infer areas of trapped traders and display them with clear, color-coded markers.
Key Features:
โข Real-Time Liquidation Estimates: Detects where major stop losses (and potential liquidations) may have occurred, based on proprietary volume + price action logic.
โข Cluster Strength Bubbles: Visual bubbles (scaled by cluster size) show where liquidations are stacking. Purple for bearish, white for bullish โ intensity reflects strength.
โข Pre-Liquidation Warning Zones: Highlights areas where price is likely to sweep liquidity before reversing, helping traders avoid chasing moves.
โข Dollar-Based Labels (Optional): Displays the estimated value liquidated, helping traders size the significance of a move (e.g., $8.4M).
โข Minimal Clutter Mode: Designed for intraday clarity โ hides excess lines and uses bubbles, not shapes, for cleaner visualization.
Catatan Rilis
Changelogv1.1 โ Heatmap Upgrade
โข Added Z-Score baseline for adaptive filtering to highlight true liquidation spikes
โข Introduced RVOL filter to block weak/low-volume prints
โข Color intensity and opacity now scale with liquidation size
โข Optional percentile-based number tags for only the largest events
โข New alert conditions for Bullish and Bearish extremes
Catatan Rilis
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ// Liquidity Hunter Heatmap Pro โ CHANGELOG
// Update: YYYY-MM-DD
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// SUMMARY
// โข Stabilized MTF handling, killed runtime/timeframe errors
// โข Replaced techy table with a beginner-friendly "Quick Read" panel
// โข Purged all format/ternary/local-scope compile errors
// โข Alert payloads now read from hidden plots (reliable placeholders)
//
// ADDED
// โข Quick Read table with plain-English verdicts, color badges, and 0โ5 dot gauge
// โข fVerdictColor() + gaugeDotsFn() helpers for readable UI
// โข Hidden alert plots: ALERT_liqM, ALERT_z, ALERT_rvol, ALERT_cluster, ALERT_cvd, ALERT_window
//
// CHANGED
// โข MTF builder: now outputs only valid TF strings (1S/5S/10S/15S/30S/45S, minutes like "240", or day codes "D","2D"...)
// โข Hours are converted to minutes (e.g., 1H โ "60"); no more "1H" strings
// โข Table labels rewritten for non-experts (Size, Unusualness, Volume vs usual, Order flow, Trend, Heat, Cluster, Signal)
// โข Bull extreme color uses color.aqua (was color.cyan in some drafts)
// โข โShow Stats Tableโ input renamed to โShow Quick Read Tableโ
//
// FIXED
// โข Compile errors:
// - Undeclared identifier `color` (scoped/typos)
// - `plot`/`bgcolor` calls inside local scopes โ moved to global; conditional series via `display=display.none`
// - Multi-line chained ternaries โ replaced with clear if/else blocks
// - `str.tostring()` invalid formats (e.g., "#.#/5.5") โ numeric format only + units appended
// โข Runtime error: invalid `request.security()` TF (โ1Hโ) โ safe converter ensures legal strings only
//
// ALERTS
// โข Alert conditions unchanged in name; messages now pull from hidden plots for stable placeholders:
// - Bearish Extreme Liquidation โ uses {{plot_0}}, {{plot_1}}, {{plot_2}}
// - Bullish Extreme Liquidation โ uses {{plot_0}}, {{plot_1}}, {{plot_2}}
// - Liquidation Cluster โ uses {{plot_3}}, {{plot_0}}, {{plot_5}}
// - CVD Trend Change โ uses {{plot_4}}
//
// PERFORMANCE / SAFETY
// โข No change to core math; added guards & rounding in TF conversion
// โข Reduced UI work in loops; table draws only on last bar
//
// MIGRATION NOTES
// โข Replace the whole script with this version (v6).
// โข If you had external alert webhooks counting on old placeholders, verify against the new hidden plots.
// โข Input label changed: โShow Stats Tableโ โ โShow Quick Read Tableโ (existing setting may reset once).
// โข If you used seconds charts with odd multipliers (e.g., 45s ร 7), HTF will round to nearest minuteโby design.
//
// VERSION BUMP
// โข Suggested: 1.6.0 (minor feature + fixes; no breaking signals)
//
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Catatan Rilis
Liquidity Hunter + Reversal Trap Detector (LiqTrap+) v6Whatโs New:
โข โ Reversal Scoring System โ Combines multiple signals (exhaustion, sweeps, divergences, absorption, VWAP extremes, iceberg orders) into a single weighted reversal score.
โข โ Reversal Probability % โ Score scaled to 0-100% for clear interpretation.
โข โ High & Extreme Reversal Zones โ Background highlights when probability crosses 60% (yellow) and 80% (red).
โข โ Trap Confirmation โ Detects when multiple confluences stack (โฅ4 points), confirming market maker traps.
โข โ Session Sweep Detection โ Pulls prior highs/lows with request.security() to confirm stop-hunt sweeps.
โข โ Absorption & Iceberg Logic โ Smart money footprints added with optional on-chart markers.
โข โ Improved VWAP & Z-Score Filtering โ Adaptive thresholds scale with volatility.
โข โ Enhanced Table Dashboard โ Top-right info panel shows liquidation size, Z-score, reversal %, trap status, divergences, absorption, sweep detection, and signal strength bars.
โข โ Trap Warning Labels โ On-chart โ ๏ธ TRAP markers with tooltips (reversal score breakdown).
โข โ New Alerts โ Five clean alert conditions:
โข Extreme Bear Reversal
โข Extreme Bull Reversal
โข Market Maker Trap Confirmed
โข Smart Money Absorption
โข Stop Hunt Detected
Fixes/Improvements:
โข Shorttitle reduced to โค10 chars (โLiqTrap+โ).
โข ATR now precomputed (no conditional call warning).
โข request.security() tuple errors resolved with destructuring.
โข Alert messages made TradingView-compliant (constant strings only).
โข String repeat replaced with conditional dots for signal strength.
โข Cleaner background coloring (no continuation errors).
โธป
๐ Description (TradingView)
LiqTrap+ is an advanced liquidity & reversal detector designed for scalpers, swing traders, and smart-money style traders. It tracks liquidation flows, stop hunts, and institutional orderflow footprints to identify high-probability reversal and trap zones.
The script combines liquidation math with orderflow dynamics to expose hidden liquidity grabs, exhaustion points, absorption, and iceberg behavior. A scoring engine converts all signals into a Reversal Probability %, making it easy to spot setups and avoid traps.
Core Features:
โข Liquidity Detection โ Scales liquidation size against volatility (Z-Score).
โข Reversal & Trap Zones โ Highlights when conditions stack into probable turning points.
โข Smart Money Footprints โ Detects absorption & iceberg clustering around key levels.
โข Session Sweeps โ Identifies prior day high/low hunts (stop runs).
โข Round Number Levels โ Flags when price tests psychological round numbers.
โข Dashboard Panel โ Real-time reversal stats in top-right corner.
โข Trap Labels โ โ ๏ธ TRAP markers with score breakdowns.
โข Alerts โ Extreme reversals, trap confirmations, smart money absorption, and stop hunts.
โธป
โก How To Use (for all trader levels)
1. Add to chart โ Works on any timeframe and symbol.
2. Read the dashboard:
โข Reversal % โ Strength of reversal setup.
โข Trap Status โ ๐ข Clear, ๐ก Warning, ๐ด Active.
โข Divergence, Exhaustion, Sweep, Absorption โ See what confluences are active.
โข Signal Bars โ Quick visual of overall reversal score.
3. Watch background colors:
โข Yellow โ High reversal probability (>60%).
โข Red โ Trap zone confirmed (>80%).
4. Trap labels (โ ๏ธ) โ Appear at reversal points with detailed tooltip (why the trap is likely).
5. Smart money markers:
โข โABSโ โ Absorption (hidden accumulation/distribution).
โข โICEโ โ Iceberg activity (repeated hidden orders).
6. Alerts โ Enable from TradingViewโs alert manager (select conditions you want).
โธป
๐ This tool is not about predicting every turnโitโs about filtering noise, exposing traps, and showing where smart money trades against retail. Use with Spider Lines, GPS zones, or VWAP for max confluence.
Catatan Rilis
ChangelogRebuilt as Liquidity Hunter Scalp Pro with scalp mode autoโoptimization and manual swing overrides.
Added scalp tuning inputs (lookback/liq threshold), RVOL/VWAP sensitivity tweaks, and local intraday sweep detection.
Updated sweep logic to combine daily and local sweeps; faster divergence window in scalp mode.
Simplified scoring for scalp speed and adjusted thresholds/probability curve.
Modernized histogram palette: major liquidity = neon green/red, LTF grabs = darker green/red, noise = gray.
Converted trap/sweep/absorption markers from labels/circles to tiny X marks in the histogram pane.
Marker brightness now scales with signal strength (trap probability / sweep liquidity).
Added toggle for trap markers.
Fixed shorttitle length and plotting scope rules.
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.