DCT - Liquidity Heatmap - Pro

Overview
This indicator maps liquidity concentration zones by analyzing volume distribution across price levels. It identifies areas where significant trading activity has accumulated, potentially indicating zones of interest for future price interaction.
Methodology
Volume Intensity Calculation
Each price level accumulates a normalized volume score calculated as:
- Volume Intensity = Current Bar Volume / SMA(Volume, lookback period)
- This normalization allows comparison across different volatility regimes and trading sessions
Level Construction
- Price levels are distributed symmetrically above and below current price using percentage-based spacing
- Each level maintains cumulative volume data, tracking both raw volume and normalized intensity
- Levels are visualized as zones with height proportional to the spacing parameter
Sweep Detection Logic
A level is marked as "swept" when price action crosses through it:
- Condition: Low ≤ Level Price AND High ≥ Level Price
- Swept levels stop accumulating new volume and can be styled differently (fade, hide, or preserve)
Color Intensity Grading
Zones are color-coded based on their normalized volume relative to the maximum observed:
- Purple: < 25% of max intensity
- Yellow: 25-50% of max intensity
- Orange: 50-75% of max intensity
- Red: > 75% of max intensity
Optional CVD (Cumulative Volume Delta) Mode
When enabled, directional volume is estimated using candle structure:
- Bullish candles: Buy pressure weighted by (Close - Open) / (High - Low)
- Bearish candles: Sell pressure weighted by (Open - Close) / (High - Low)
- Levels display green/red bias based on accumulated directional volume ratio
Adaptive System
The indicator includes a three-layer adaptive system:
1. Timeframe adaptation: Spacing, level count, and retention automatically adjust for M5 through Daily charts
2. Volatility adaptation: ATR-based adjustments widen spacing during high volatility and tighten during consolidation
3. Market type adaptation: Different imbalance thresholds for BTC/ETH, large altcoins, and small caps
Imbalance Detection
Buy/sell imbalance markers appear when the ratio of accumulated buy volume to sell volume exceeds a configurable threshold (default 1.5x for BTC/ETH, 2.0x for small caps).
What Makes This Implementation Unique
- Dollar-denominated liquidity display: Labels show estimated liquidity in USD (K/M/B format) rather than abstract values
- Three-layer adaptive logic: Combines timeframe, volatility (ATR), and asset-class adjustments simultaneously
- Memory-optimized architecture: Automatic cleanup of old swept levels prevents performance degradation on extended charts
- Forward projection: Active levels extend into future bars for cleaner visualization
- Granular visibility controls: Each intensity tier can be toggled independently
Settings Guide
- Dynamic: Enable adaptive adjustments (recommended)
- Spacing: Distance between levels as % of price
- Levels: Number of levels above/below price
- CVD: Enable directional volume analysis
- Forward: Project levels ahead by specified bars
Usage Notes
- Works on both Perpetual and Spot crypto markets
- Optimized for crypto assets; results may vary on other instruments
- Higher timeframes show broader liquidity structure; lower timeframes show granular detail
- Combine with your own analysis framework
Disclaimer
This indicator visualizes historical volume distribution and does not predict future price movement. Not financial advice. Use appropriate risk management.
Script su invito
Solo gli utenti approvati dall'autore possono accedere a questo script. È necessario richiedere e ottenere l'autorizzazione per utilizzarlo. Tale autorizzazione viene solitamente concessa dopo il pagamento. Per ulteriori dettagli, seguire le istruzioni dell'autore riportate di seguito o contattare direttamente Daily-Crypto-Trading.
TradingView NON consiglia di acquistare o utilizzare uno script a meno che non si abbia piena fiducia nel suo autore e se ne comprenda il funzionamento. È inoltre possibile trovare alternative gratuite e open source nei nostri script della community.
Istruzioni dell'autore
Declinazione di responsabilità
Script su invito
Solo gli utenti approvati dall'autore possono accedere a questo script. È necessario richiedere e ottenere l'autorizzazione per utilizzarlo. Tale autorizzazione viene solitamente concessa dopo il pagamento. Per ulteriori dettagli, seguire le istruzioni dell'autore riportate di seguito o contattare direttamente Daily-Crypto-Trading.
TradingView NON consiglia di acquistare o utilizzare uno script a meno che non si abbia piena fiducia nel suo autore e se ne comprenda il funzionamento. È inoltre possibile trovare alternative gratuite e open source nei nostri script della community.