Volume Weighted Average Price
systemic:core-vwapIndicatorsInputs
| Name | Type | Description |
|---|---|---|
| Window | Whole number | The number of bars in the rolling VWAP. |
| Price | Number series | The price series to average, usually closing prices. |
| Volume | Number series | The trading volume of each bar, used to weight that bar's price. |
Outputs
| Name | Type | Description |
|---|---|---|
| VWAP | Number series | The 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.
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.
| Situation | Output |
|---|---|
| Fewer than N bars with data so far (warm-up) | Empty |
| A bar with no Price or no Volume | Empty 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 Position | Interpretation |
|---|---|
| Price > VWAP | Buyers paying above average — bullish pressure |
| Price < VWAP | Buyers paying below average — bearish pressure |
| Price ≈ VWAP | Fair 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 Type | VWAP Use |
|---|---|
| Buyer | Aim to buy below VWAP (good fill) |
| Seller | Aim to sell above VWAP (good fill) |
| Execution algorithm | Trade near VWAP to limit market impact |
Trading Strategies
1. VWAP as Support/Resistance
| Condition | Action |
|---|---|
| Price pulls back to VWAP in uptrend | Potential buy zone |
| Price rallies to VWAP in downtrend | Potential sell zone |
2. VWAP Crossover
| Event | Signal |
|---|---|
| Price crosses above VWAP | Intraday bullish |
| Price crosses below VWAP | Intraday 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
| Aspect | VWAP (this module) | SMA/EMA |
|---|---|---|
| Volume | ✓ Incorporated | ✗ Price only |
| Window | Rolling, last N bars | Rolling, last N bars |
| Institutional use | Primary benchmark | Secondary indicator |
| Best for | Execution assessment | Trend identification |
Considerations
| Factor | Impact |
|---|---|
| Window size | A larger N smooths more but reacts more slowly to recent volume shifts |
| Volume spikes | High-volume bars have a strong effect on VWAP |
| Rolling, not session-anchored | Unlike 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]
| Dimension | Stocks | Crypto | Notes |
|---|---|---|---|
| Popularity | 9/10 | 7/10 | The institutional standard for execution quality in equities; increasingly adopted in crypto |
| Reliability | 8/10 | 6/10 | Highly reliable for liquid stocks with accurate volume data; crypto volume reporting varies |
| Complexity | 3/10 | 3/10 | Simple rolling-window formula; easy to interpret |
| Versatility | 7/10 | 6/10 | Very good for intraday trading; the window sets the look-back |
| Recent Interest | 8/10 | 8/10 | Core institutional tool; growing use in algorithmic and crypto trading strategies |
Rendering diagrams...