Skip to content
StatePath
Tool Atlasmarket.vwap

Tool

VWAP

market.vwap

MarketVolume

Inputs

No typed inputs.

Outputs

Bundle (untagged)

A bundle: the VWAP line (volume-weighted fair value) plus inner and outer bands at band_mult_1 and band_mult_2 standard deviations above and below it.

VWAP (Volume-Weighted Average Price) is the average price of a market over a chosen span, weighted by how much volume traded at each price. Traders use it as a fair-value line: price above VWAP leans bullish for the span, below it leans bearish.

VWAP overview diagram

How it works

Bar by bar it adds up (price x volume) and divides by total volume since the anchor point, so heavily traded bars pull the line harder. The anchor decides when that running total RESETS (each session, day, week, or never), and two standard-deviation bands are drawn at band_mult_1 and band_mult_2 multiples around the line to mark how stretched price is from the average.

Modes

Anchor options

Sessionsession

Reset the VWAP accumulation at the start of each trading session, so the line measures fair value only within that session.

Session diagramVWAP

When to use: Use for intraday trading where each session's flow should be judged on its own.

Dayday

Reset the VWAP at the start of each calendar day, giving one fair-value line per day.

Day diagramVWAP

When to use: Use for day-trading where the daily open is the reference point.

Weekweek

Reset the VWAP at the start of each week, so the line tracks fair value across the whole week.

Week diagramVWAP

When to use: Use for swing trading that holds positions across several days.

Continuouscontinuous

Never reset: the VWAP keeps accumulating across the whole window, producing one slow-moving line.

Continuous diagramVWAP

When to use: Use when you want a single long-run fair value rather than a per-period reset.

Rollingrolling

A fixed sliding window: the VWAP of the last period bars, recomputed every bar - nothing ever resets.

Rolling diagram

When to use: Use for a chart-overlay fair-value line that always reflects the most recent period bars.

Source options

Openopen

Weight each bar's open price by its volume.

Open diagramseriesopenseries

When to use: Use open when that price best reflects the move you trade.

Highhigh

Weight each bar's high price by its volume.

High diagramserieshighseries

When to use: Use high when that price best reflects the move you trade.

Lowlow

Weight each bar's low price by its volume.

Low diagramserieslowseries

When to use: Use low when that price best reflects the move you trade.

Closeclose

Weight each bar's close price by its volume.

Close diagramseriescloseseries

When to use: Use close when that price best reflects the move you trade.

Median (HL2)hl2

Weight the median price, the average of each bar's high and low.

Median (HL2) diagramserieshl2series

When to use: Use the median when you want a balanced point between the bar's extremes.

Typical (HLC3)hlc3

Weight the typical price, the average of high, low, and close. This is the default and the classic VWAP input.

Typical (HLC3) diagramserieshlc3series

When to use: Use the typical price for the standard VWAP behaviour.

Average (OHLC4)ohlc4

Weight the average price, the mean of open, high, low, and close.

Average (OHLC4) diagramseriesohlc4series

When to use: Use the average price for the smoothest summary of each bar.

Configuration

anchorenum

Where the volume-weighted average RESETS: session, day, week, or continuous (never). The reset point sets which span of price-and-volume the line summarizes.

Choices:sessiondayweekcontinuousrolling
periodscalar

Sliding window length in bars for the rolling anchor - the classic chart-overlay VWAP. Ignored by the session / day / week / continuous anchors.

sourceenum

Which price each bar contributes before volume weighting: open, high, low, close, hl2 (median), hlc3 (typical), or ohlc4 (average). hlc3 is the default and the classic VWAP input.

Choices:openhighlowclosehl2hlc3ohlc4
band_mult_1scalar

The standard-deviation multiple for the first (inner) band pair. The bands sit this many sigma above and below the VWAP line; 1.0 means one standard deviation.

band_mult_2scalar

The standard-deviation multiple for the second (outer) band pair, marking a more stretched distance from VWAP. 2.0 means two standard deviations.

Connects to

Feeds into

Examples

  • Filter: only take longs while price holds above the session VWAP (mean-reversion bias toward fair value).
  • Use interpretor.vwap_position to gate entries on price reclaiming VWAP, and fade moves that reach the +2 sigma outer band.

Common mistakes

  • Reading a session VWAP across a session boundary — it resets, so the line near the open is built from very little data and is jumpy.
  • Trusting VWAP on instruments with unreliable volume (e.g. forex tick volume), where the weighting is distorted.

See also