Systemicbeta

Volume Weighted Average Price

systemic:core-vwapIndicators

Inputs

NameTypeDescription
WindowWhole numberThe number of bars in the rolling VWAP.
PriceNumber seriesThe price series to average, usually closing prices.
VolumeNumber seriesThe trading volume of each bar, used to weight that bar's price.

Outputs

NameTypeDescription
VWAPNumber seriesThe volume-weighted average price over the last Window bars, at each bar.

Cost

7
credits per run
1,000
bars

0.207 + 0.00594·n credits for n bars, rounded up. The marks are each plan's limit of bars.

VWAP is the average price at which an asset traded over a rolling window of N bars, weighted by volume. It is not the traditional VWAP that resets every session. It updates bar by bar, the same way an SMA does.

VWAP=∑i=1N(Pricei×Volumei)∑i=1NVolumeiVWAP = \frac{\sum_{i=1}^{N} (Price_i \times Volume_i)}{\sum_{i=1}^{N} Volume_i}

How It Works

flowchart TD
    subgraph Data["Market Data (last N bars)"]
        P["Price (the series you connect)"]
        V["Volume"]
    end
    
    subgraph Calc["Rolling Window Calculation"]
        PV["Price × Volume"]
        SUM1["Σ(Price × Volume), last N bars"]
        SUM2["Σ Volume, last N bars"]
    end
    
    subgraph Result["Output"]
        DIV["SUM1 ÷ SUM2"]
        VWAP["VWAP"]
    end
    
    P & V --> PV --> SUM1 --> DIV
    V --> SUM2 --> DIV
    DIV --> VWAP

Missing Data

A bar is used only when both Price and Volume have a value. A bar that misses either one is left out of the window. It is never treated as zero. "N bars" means N bars with data, so the window skips gaps (for example a weekend) and reaches further back.

SituationOutput
Fewer than N bars with data so far (warm-up)Empty
A bar with no Price or no VolumeEmpty at that bar
A bar with zero volume (no trades)Counts as a bar, with no weight. A window where every bar has zero volume gives an empty value, not 0

Interpreting VWAP

Price PositionInterpretation
Price > VWAPBuyers paying above average — bullish pressure
Price < VWAPBuyers paying below average — bearish pressure
Price ≈ VWAPFair value zone
flowchart LR
    subgraph Zones["Price vs VWAP"]
        ABOVE["Above VWAP<br/>Bullish bias"]
        AT["At VWAP<br/>Fair value"]
        BELOW["Below VWAP<br/>Bearish bias"]
    end
    
    ABOVE --> AT --> BELOW

Institutional Usage

VWAP serves as a benchmark for trade execution quality:

Trader TypeVWAP Use
BuyerAim to buy below VWAP (good fill)
SellerAim to sell above VWAP (good fill)
Execution algorithmTrade near VWAP to limit market impact

Trading Strategies

1. VWAP as Support/Resistance

ConditionAction
Price pulls back to VWAP in uptrendPotential buy zone
Price rallies to VWAP in downtrendPotential sell zone

2. VWAP Crossover

EventSignal
Price crosses above VWAPIntraday bullish
Price crosses below VWAPIntraday bearish

3. VWAP Bands

Standard deviation bands around VWAP help identify:

  • Overbought: Price at +2σ band
  • Oversold: Price at -2σ band

VWAP vs Moving Averages

AspectVWAP (this module)SMA/EMA
Volume✓ Incorporated✗ Price only
WindowRolling, last N barsRolling, last N bars
Institutional usePrimary benchmarkSecondary indicator
Best forExecution assessmentTrend identification

Considerations

FactorImpact
Window sizeA larger N smooths more but reacts more slowly to recent volume shifts
Volume spikesHigh-volume bars have a strong effect on VWAP
Rolling, not session-anchoredUnlike the intraday VWAP on most charts, this indicator never resets. Pick N to match the look-back you care about

Advantages

  • Volume-weighted — Reflects the average traded price
  • Institutional benchmark — Standard for execution quality
  • Dynamic support/resistance — Continuously updates with new bars
  • Clear signal — Price above or below VWAP gives a directional bias

Disadvantages

  • Not session-anchored — Does not reproduce the daily-reset VWAP; set the window to approximate a session
  • Volume dependent — Needs reliable volume data
  • Warm-up gap — No value until N bars have data

Further Reading


Indicator Assessment

%%{init: {'theme': 'base', 'themeVariables': { 'cScale0': '#2563eb', 'cScale1': '#7c3aed'}}}%%
quadrantChart
    title VWAP Indicator Assessment
    x-axis Low Complexity --> High Complexity
    y-axis Low Reliability --> High Reliability
    quadrant-1 High Value
    quadrant-2 Specialized
    quadrant-3 Limited Use
    quadrant-4 Accessible
    Stocks: [0.30, 0.80]
    Crypto: [0.30, 0.60]
DimensionStocksCryptoNotes
Popularity9/107/10The institutional standard for execution quality in equities; increasingly adopted in crypto
Reliability8/106/10Highly reliable for liquid stocks with accurate volume data; crypto volume reporting varies
Complexity3/103/10Simple rolling-window formula; easy to interpret
Versatility7/106/10Very good for intraday trading; the window sets the look-back
Recent Interest8/108/10Core institutional tool; growing use in algorithmic and crypto trading strategies
Rendering diagrams...
© 2026 WanoLabs. All rights reservedBeta v0.1.5