Quantum Liquidity Map [NikaQuant]
DESCRIPTION:
Quantum Liquidity Map combines three institutional analysis methods — Volume Profile, anchored VWAP with standard-deviation bands, and Cumulative Volume Delta (CVD) divergence — into a single overlay. The thesis behind this combination: volume profile reveals where institutional participants have positioned size, VWAP establishes the session's fair-value anchor, and CVD exposes whether current price movement has genuine order-flow conviction behind it. Used together, they answer the three questions institutional traders ask at every level: "Is there volume here?", "Is price stretched from fair value?", and "Is this move real?"
█ HOW IT WORKS
── Volume Profile Heatmap ──
The indicator builds a visible-range volume profile by distributing each bar's volume into horizontal price buckets across the lookback window. The bucket containing the highest accumulated volume becomes the Point of Control (POC) — the single price where the most trading activity occurred. This represents the market's consensus fair value for that window.
From the POC, a value area is expanded outward using the CBOT method: alternately adding the next-highest-volume bucket above and below until 70% (adjustable) of total volume is captured. The upper boundary is Value Area High (VAH) and the lower is Value Area Low (VAL). These levels act as acceptance/rejection zones — price returning to the value area tends to find support or resistance at its edges.
A "Naked POC" (nPOC) is the previous session's POC that price has not yet revisited. Because large volume clusters attract price, untested POCs often act as magnets.
The profile renders as a gradient heatmap: hotter (more opaque) bins represent higher volume concentration. Each bin has a tooltip showing its zone type, price range, and volume percentage.
── VWAP with Standard-Deviation Bands ──
The Volume-Weighted Average Price is calculated manually (no request.security) by accumulating price × volume and dividing by cumulative volume from the anchor reset. This gives the true average price weighted by where actual trading occurred — a more meaningful "average" than a simple moving average.
Thirteen anchor periods are available (1H through Yearly) so the same tool adapts from scalping to swing contexts. Shorter anchors (1–4H) capture intraday institutional positioning; longer anchors (Weekly, Monthly) reveal macro fair value.
Two standard-deviation bands (±1σ and ±2σ, multipliers adjustable) are derived from the running variance of the volume-weighted price distribution. In a normal distribution, roughly 68% of observations fall within ±1σ and 95% within ±2σ. When price reaches the outer bands, it is statistically extended from fair value — a condition that historically favors mean reversion. The bands only render after 5+ bars in the session to avoid misleading spikes at anchor resets.
── CVD Divergence Engine ──
Cumulative Volume Delta estimates net buying vs. selling pressure per bar using the close-location-in-range method: buy volume ≈ volume × (close − low) / (high − low), sell volume is the remainder. Summing the difference cumulatively across the session produces the CVD line.
The divergence detector uses confirmed swing pivots (ta.pivothigh / ta.pivotlow with equal left and right lookback bars) to identify structural price highs and lows. A bearish divergence fires when price prints a higher high but CVD prints a lower high — meaning the new price extreme was achieved on weaker buying pressure, suggesting exhaustion. Bullish divergence is the inverse: lower price low but higher CVD low, indicating selling pressure is diminishing.
Two filters reduce noise:
• Both-sided pivot confirmation (bars left AND right must confirm the swing) eliminates premature signals.
• An ATR filter requires the swing to exceed 1.5× ATR(14) in magnitude, filtering out minor pivots that produce meaningless divergences.
Divergence signals only fire on confirmed (closed) bars — no repainting.
█ HOW THE COMPONENTS WORK TOGETHER
Volume Profile identifies the key levels (POC, VAH, VAL). VWAP bands measure how far price has stretched from fair value. CVD divergence reveals whether the current move toward or away from those levels has genuine order-flow support.
Example workflow:
• Price approaches VAH from below → check VWAP band zone. If price is already at +2σ AND a bearish CVD divergence fires, three independent systems are aligned for a rejection.
• Price tests a Naked POC → if CVD is trending in the direction of the test and price is between VWAP and ±1σ (not overextended), the level is more likely to hold as support/resistance.
• No single component generates a trade signal. The value is in confluence — when multiple systems agree, the probability of a reaction increases.
█ HOW TO USE IT
1. Start with the Volume Profile: identify where POC, VAH, and VAL sit relative to current price. These are your key decision levels.
2. Check the VWAP Band Zone (shown in the dashboard): if price is in the ±1σ zone, it is near fair value. If it is beyond ±2σ, it is statistically extended.
3. Watch for CVD divergence arrows near key VP levels or at VWAP band extremes — these confirm or deny the conviction behind the price move.
4. The dashboard shows Day Volume, Delta %, VWAP Distance, VAH/VAL Distance, current CVD signal, and Band Zone at a glance.
Settings to adjust for your timeframe:
• Lookback Bars: controls how much history the volume profile covers. 48 on a 30m chart ≈ 1 day.
• VWAP Period: match to your trading horizon. Session for intraday, Week/Month for swing.
• CVD Pivot Lookback: higher values (8–15) produce fewer but stronger divergence signals.
█ ALERTS
Four JSON-formatted alert conditions for webhook automation:
• Price touches POC (within 0.5 ATR)
• Price enters VAH zone
• Price enters VAL zone
• CVD divergence detected (bullish or bearish)
Non-repainting. No lookahead. Pine Script v6.
Built by NikaQuant.
Pine Script® göstergesi






















