OPEN-SOURCE SCRIPT
Zaktualizowano

Liquidity Hunter Heatmap

2 976
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.
Informacje o Wersji
Changelog

v1.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
Informacje o Wersji
// ─────────────────────────────────────────────────────────────────────────────
// 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)
//
// ─────────────────────────────────────────────────────────────────────────────
Informacje o Wersji
Liquidity Hunter + Reversal Trap Detector (LiqTrap+) v6

What’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.

Wyłączenie odpowiedzialności

Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.