vpvr builds a horizontal volume-at-price histogram across the active visible chart range, computing Point of Control (POC), Value Area High (VAH), Value Area Low (VAL), High-Volume Nodes (HVN), Low-Volume Nodes (LVN), and buy/sell volume skew.
Always view-adaptive by default. Unlike the other 14 studies,
vpvrbelongs toVIEW_ADAPTIVE— it recalculates over the visible viewport even when chart scope is set toFixed. Pass an explicit numericwindowparameter if you want to pinvpvrto a fixed trailing bar count.
Parameters
| Parameter | Default | Range | Type | Timeframe overrides |
|---|---|---|---|---|
window |
500 |
60..2000 |
integer | Ignored in view mode unless explicitly passed |
bins |
48 |
12..120 |
integer | — |
valueAreaPct |
70 |
50..90 |
number (%) | — |
Algorithm & Nuances
- Proportional candle distribution (
vpvrScan): Divides[minL, maxH]acrossbinsequal-width buckets (step = (maxH - minL) / bins). Each candle’s volume is allocated proportionally across every price bucket overlapped by[l[i], h[i]]. - Buy/sell split: Approximates per-candle buyer aggression via
buyShare = clamp((c - l) / (h - l), 0, 1)(0.5whenh <= l), splitting each bucket’s volume into buy and sell stacks. - Point of Control (
POC): Selects the highest-volume bucket. Ties break toward the center bucket(bins - 1) / 2, then the lower price bucket. - Market Profile Value Area (
VAH/VAL): Expands outward fromPOCusing standard 2-bin lookahead — comparing the combined volume of the next 2 buckets above(up1 + up2)against the next 2 buckets below(dn1 + dn2)— stepping into the heavier side until cumulative volume reachestotalVol * (valueAreaPct / 100). - High- & Low-Volume Nodes:
- HVNs: Up to
3local volume peaks (idx !== pocIdx) with volume>= 0.65 * pocVol, ranked by volume. - LVNs: Up to
3local volume valleys strictly inside[valIdx, vahIdx]with volume<= 0.35 * pocVol, ranked lowest first.
- HVNs: Up to
- Skew & position: Computes
skew = r2((totalBuy / totalVol) * 2 - 1)in[-1, 1]and classifieslastCloseas'above_va','inside_va', or'below_va'.
Drawings & Facts
- Drawings:
1profileoverlay anchored to the right edge (clamp(width * 0.22, 48, 180)px wide) showing split buy/sell histogram bars, shaded Value Area, solidPOCline, dashedVAH/VALlines, and right-edge price tags. - Facts (
VpvrFacts):lastClose,poc,vah,val,position,vaWidthAtr,hvns[],lvns[],skew, andbins.
Activation
- Studies menu:
Volume profile: POC and value area(VPVR) - Slash command:
/vpvr - Chat phrases:
vpvr,profile,poc,vah,val,vp