What is VWAP?
VWAP is the average price traded since the start of the anchor period, with each bar weighted by its volume, drawn as a line on the price chart. The default anchor is Session, which for crypto is the UTC day, so the line starts again at midnight UTC and builds through the day; Week, Month, Quarter and Year are also available. Bands around the line, one pair shown by default, mark a volume-weighted standard deviation or a percentage away from it.
VWAP shows where volume has been done on average since the anchor. It does not predict direction, it is not a support or resistance level by itself, and with the Session anchor it says little on daily or higher timeframes.
How to use VWAP
- Price above or below the line. Price above VWAP means the market is trading above today's volume-weighted average, which is read as buyers being in control for the day. Below it, sellers.
- Returns to the line. In a trending day, pullbacks often meet VWAP before continuing. In a ranging day, price tends to oscillate around it.
- Early versus late in the period. Just after the anchor period starts, midnight UTC with the default Session, the line rests on very few bars and moves easily. Later it carries the whole period's volume and moves slowly.
- The bands. In Standard Deviation mode the bands widen when volume has traded far from VWAP during the period. Price outside a band has moved unusually far from the period's volume-weighted average.
- Execution benchmark. Buying below VWAP or selling above it means doing better than the day's average price.
These are ways to read the line, not entry signals on their own.
Settings
| Setting | Default | What it changes |
|---|---|---|
| Anchor Period | Session | When the running totals start again. Session is the UTC day, Week starts on Monday 00:00 UTC, and Month, Quarter and Year follow the calendar. |
| Source | hlc3 | Which price each bar contributes, weighted by its volume. hlc3 is (high + low + close) / 3. |
| Offset | 0 | Shifts VWAP and its bands the given number of bars along the chart. 0 draws each value on its own bar. Minimum 0. |
| Bands Calculation Mode | Standard Deviation | How far the bands sit from VWAP. Standard Deviation uses the volume-weighted standard deviation of the source since the period started; Percentage uses 1% of VWAP. Each band multiplies that distance by its own multiplier. |
| Band #1 | On | Shows the first pair of bands, with the area between them shaded. |
| Bands Multiplier #1 | 1 | Distance of the first bands from VWAP, in standard deviations or percent depending on the mode. Minimum 0. |
| Band #2 | Off | Shows the second pair of bands. |
| Bands Multiplier #2 | 2 | Distance of the second bands from VWAP. Minimum 0. |
| Band #3 | Off | Shows the third pair of bands. |
| Bands Multiplier #3 | 3 | Distance of the third bands from VWAP. Minimum 0. |
Choose the anchor period, source and bands in the indicator settings. For a VWAP that starts from a swing, use Anchored VWAP.
Calculation
From the first bar of each anchor period, the indicator keeps three running totals and derives VWAP and its bands from them:
price = Source (hlc3 by default)
at a new anchor period: sumPV = 0, sumV = 0, sumP2V = 0
each bar: sumPV = sumPV + price * volume
sumV = sumV + volume
sumP2V = sumP2V + price^2 * volume
VWAP = sumPV / sumV
stdev = sqrt(max(sumP2V / sumV - VWAP^2, 0))
band k = VWAP +/- multiplier k * stdev (Standard Deviation)
band k = VWAP +/- multiplier k * VWAP / 100 (Percentage)
Session is the UTC day and Week starts on Monday 00:00 UTC; Month, Quarter and Year are calendar periods. Each period's line is independent of the one before. With the Session anchor on a daily chart every bar is its own period, so the line equals each bar's source price.
Band #1 at 1x is shown by default with its area shaded; Band #2 at 2x and Band #3 at 3x are off. A band that is off draws nothing. Bars with no price or volume are skipped.
The first period in view is usually partial: the chart's history starts part-way through it, so the earliest bars average only what has loaded, and their values change as more history loads behind them.
Limitations
- Short anchors are intraday tools. With the Session anchor on daily and higher timeframes it reduces to each bar's source price, which adds little.
- It is weak early in the period. Just after the anchor period starts it rests on few bars and can swing with each one.
- The reset is fixed to UTC. Crypto trades around the clock, and midnight UTC may not match the session you care about. Anchored VWAP starts from a price swing instead.
- It lags late in the period. With a whole period of volume behind it, the line barely moves even after a large move in price.
- It is not a strategy. On its own it carries no risk management, sizing or exit.
Frequently asked questions
VWAP, the volume-weighted average price, is the average price traded since the start of the anchor period, where each bar counts in proportion to its volume. By default the anchor is Session, which in Altrady Charts is the UTC day.
At the start of each anchor period. With the default Session that is midnight UTC; Week resets on Monday 00:00 UTC, and Month, Quarter and Year at the start of each calendar period. The first bar of a new period starts the running totals again.
Yes. The indicator declares Anchor Period, default Session, with Week, Month, Quarter and Year as the other choices; Source, default hlc3; Offset, default 0; Bands Calculation Mode, default Standard Deviation, or Percentage; and three bands, each with an on/off switch and a multiplier: Band #1 on at 1, Band #2 off at 2 and Band #3 off at 3. Open the indicator's settings on the chart to change them.
Closed bars are not revised by new bars. The current bar's value moves while that candle is live and settles when it closes. One exception is the first, partial period at the left edge of the chart: those values change when older history loads, because more of that period's bars become available.
With the default Session anchor, intraday timeframes, where a day contains many bars. On a daily chart each bar is a session on its own and VWAP simply equals that bar's source price. The longer anchors cover more bars per period and also apply on higher timeframes.