What it does
Calculates an anchored aggregate VWAP from the selected chart price source and the final aggregate total, then draws up to three symmetric band sets around it.
Calculations
1. Select the chart source from Open, High, Low, Close, HL2, OHLC4, or HLC3.
2. From the active anchor, cumulatively add source × total, total, and source² × total while source is valid and total is greater than zero.
3. Compute VWAP as cumulative Sum(source × total) / Sum(total).
4. Compute weighted variance from the anchored price moments, then convert it into either weighted standard deviation or a percentage basis from VWAP.
5. Place each enabled band symmetrically above and below VWAP using its multiplier.
Unique story it tells
It measures the volume-weighted accepted price since the selected anchor, so it shows where the market has done most of its business and how far price is stretching away from that accepted value.
How it identifies tops/bottoms
It does not include built-in top/bottom markers or fixed reversal signals. Instead, it frames extension and mean-reversion context with anchored VWAP slope and the enabled bands, so possible tops are usually watched when price stretches above upper bands and starts losing acceptance, while possible bottoms are usually watched when price stretches below lower bands and starts regaining acceptance.
Story it tells when indicator is rising
Rising means the anchored volume-weighted accepted price is moving higher, so trade is being accepted at progressively higher levels since the active anchor.
Story it tells when indicator is falling
Falling means the anchored volume-weighted accepted price is moving lower, so trade is being accepted at progressively lower levels since the active anchor.
Story it tells when indicator is neutral
Neutral usually means the anchored volume-weighted accepted price is staying relatively flat, so accepted value is stable and neither higher nor lower prices are taking control.
What it means when indicator is rising + price is rising
Bullish confirmation: accepted value is rising and price is also moving higher, so the move is staying aligned with an advancing anchored average.
What it means when indicator is rising + price is falling
Short-term weakness against a still-rising anchored average: price is pulling back, but accepted value since the anchor is still trending higher.
What it means when indicator is falling + price is rising
Short-term strength against a still-falling anchored average: price is bouncing, but accepted value since the anchor is still trending lower.
What it means when indicator is falling + price is falling
Bearish confirmation: accepted value is falling and price is also moving lower, so the move is staying aligned with a declining anchored average.
Unique features and settings
Adjustable settings
Market Type — limits the calculation to Spot, Perps, or Both.
Mode — builds the weighting input using Base Units or USD Turnover before the VWAP math is applied.
Source — selects the chart price source used in the anchored VWAP calculation.
Anchor Period — sets the reset period for the anchored VWAP state.
Color VWAP by Slope — colors the VWAP line by whether VWAP itself is rising or falling.
Bands Calculation Mode — switches the band basis between anchored weighted standard deviation and percentage distance from VWAP.
Enable Band #1 — shows or hides the first VWAP band set.
Band #1 Multiplier — sets the distance multiplier for the first band set.
Enable Band #2 — shows or hides the second VWAP band set.
Band #2 Multiplier — sets the distance multiplier for the second band set.
Enable Band #3 — shows or hides the third VWAP band set.
Band #3 Multiplier — sets the distance multiplier for the third band set.
Show Debug Table — displays the full per-venue audit table for the active routed asset.
Font Size — changes the debug table text size.
Location — moves the debug table on the chart.
Hardcoded settings
Final launch venue map — uses the suite’s finalized routed spot and perpetual venue lists as the aggregate source.
Spot/perp interpretation metadata — defines whether each venue contributes as Base, Quote, or Contracts.
Contract mode metadata — defines how contract-based rows convert before they enter the aggregate.
Contract Sizes — apply stored multipliers to perpetual rows that use contract counts.
Data-defense behavior — keeps venue-ignore protection enabled when repeated bad data appears.
Bad-bar threshold — removes a venue’s used contribution after 5 consecutive bad bars.
BASE_ONLY enforcement — forces Base Units internally on supported non-USD or index-like charts.
FALLBACK behavior — switches to the chart’s own volume on unsupported-base charts.
Market-type total-selection — uses explicit Spot / Perps / Both logic to choose the active total.
Debug fetch behavior — may widen active routed fetch scope to show the full venue map, while still reusing each venue fetch once and keeping Used and % Share honest.
Source mapping — maps the selected Source to the chart’s Open, High, Low, Close, HL2, OHLC4, or HLC3 value.
Anchor reset rule — resets the anchored sums at Session, Week, Month, Quarter, Year, or Decade boundaries.
Decade reset rule — treats the first yearly boundary of years ending in 0 as a decade reset.
Accumulation gate — only updates the anchored sums when the selected source is valid and the active total is greater than zero.
VWAP construction — always computes anchored VWAP as cumulative Sum(source × total) / Sum(total) since the active anchor.
Variance basis — always computes band variance from anchored weighted price moments, not from a rolling window.
Band basis mode — uses either anchored weighted standard deviation or 1% of absolute VWAP as the band basis.
Band symmetry rule — always places enabled bands equally above and below VWAP.
Slope-color rule — colors VWAP from VWAP slope, not from price being above or below VWAP.
Band-fill rule — fills each enabled upper/lower band pair.
Overlay behavior — plots directly on the price chart.
Notes specific to this script
This script has no shared Moving Average section, because the production display is anchored VWAP plus optional band sets rather than a final-line MA overlay. It is an overlay script, so it plots directly on price instead of in a separate pane. The bands are anchored to the current reset period, not built from a rolling lookback around price. In Percentage mode, the band basis is 1% of absolute VWAP before the selected band multiplier is applied. Bars with invalid source or zero active total do not advance the anchored sums. There is no separate warmup window; the line becomes available as soon as the active anchor has valid source and nonzero total.

