Charts See the terminal

Anchored VWAP

The volume-weighted average price since the most recent swing low or high, with deviation bands, showing what buyers or sellers since that turn have paid on average.

Live Anchored VWAP preview · BTC/USDT · Binance

What is Anchored VWAP?

Anchored VWAP is a volume-weighted average price that starts from a chosen bar instead of from the start of the day. By default the anchor is the lowest low of the last 200 bars, so the line answers the question what has the average buyer since that swing low actually paid. The anchor can also be the highest high of the lookback, or a fixed time. Bands are drawn above and below the line at a multiple of the volume-weighted standard deviation, or at a percentage of the VWAP.

Anchored VWAP shows the average cost of trading since one specific point. In the swing modes it moves its anchor when a new extreme forms, and it is not a support or resistance level by itself.

How to use Anchored VWAP

  • Price above or below the line. With the anchor on a swing low, price above the line means those who bought since the low are, on average, in profit. A return to the line is where that average buyer is back at break-even.
  • Tests of the line. In a trend, pullbacks often meet the anchored VWAP before continuing. A clean break through it suggests the move from the anchor has lost its footing.
  • The bands. By default one pair of bands is shown, one volume-weighted standard deviation either side. Two further pairs, at 2 and 3 by default, can be switched on. Price at an outer band is stretched relative to the volume traded since the anchor.
  • Steps in the line. In the Lowest Low and Highest High modes, when a new extreme forms, or the old one drops out of the lookback, the anchor jumps to the new bar and the line restarts from there. With Fixed Time the line is one continuous average and does not step.

These are ways to read the line, not entry signals on their own.

Settings

SettingDefaultWhat it changes
AnchorLowest Low Where the average starts. Lowest Low anchors to the lowest low in the lookback, for reading the average cost of buyers since a swing low. Highest High anchors to the highest high, for sellers since a swing high. Fixed Time starts one continuous average at the bar set by Anchor Time.
Anchor Lookback200 How many bars back, including the current one, the indicator searches for the anchor in the Lowest Low and Highest High modes. Shorter anchors to more recent swings and moves the anchor more often. Minimum 2.
Anchor Time0 The time the average starts from when Anchor is Fixed Time. Left unset, or set earlier than the chart's loaded history, nothing is drawn. The other anchor modes ignore it.
Sourcehlc3 The price each bar contributes to the average and the bands. The default, hlc3, is the typical price, (high + low + close) / 3. Open, high, low, close and the other averaged sources are also available.
Bands Calculation ModeStandard Deviation How the band distance is measured. Standard Deviation places each band its multiplier times the volume-weighted standard deviation from the line. Percentage places it that many percent of the VWAP away.
Bands Multiplier #11 Distance of the first pair of bands, in standard deviations or, in Percentage mode, in percent. Higher widens them. 0.001 to 1000.
Show BandsOn Shows or hides the first pair of bands. The VWAP line is drawn either way.
Bands Multiplier #22 Distance of the second pair of bands, in the same unit as the first. 0.001 to 1000.
Show Band #2Off Shows or hides the second pair of bands.
Bands Multiplier #33 Distance of the third pair of bands, in the same unit as the first. 0.001 to 1000.
Show Band #3Off Shows or hides the third pair of bands.

Adjust the anchor, price source and up to three pairs of bands in the indicator settings. Only the first pair is shown by default.

Calculation

In the Lowest Low and Highest High modes, on each bar the indicator finds the bar with the lowest low (or highest high) in the lookback, then sums from that bar to the current one, using the chosen source, hlc3 by default:

anchor = bar with the lowest low in the last 200 bars

from the anchor to the current bar:
  sumPV  = sum(price * volume)
  sumV   = sum(volume)
  sumP2V = sum(price^2 * volume)

VWAP     = sumPV / sumV
variance = sumP2V / sumV - VWAP^2

Standard Deviation:  bands = VWAP +/- multiplier * sqrt(variance)
Percentage:          bands = VWAP +/- VWAP * multiplier / 100

The variance is the volume-weighted spread of the source price around the VWAP since the anchor, not a plain standard deviation of price. If rounding puts it a hair below zero on a very flat stretch, it is treated as zero, so Standard Deviation bands close onto the line.

In the swing modes the sum is recalculated from the anchor on every bar, because the anchor can move. When the current bar sets a new extreme it becomes the anchor, and the line starts again at that bar's price with Standard Deviation bands closed onto it. The line appears once the lookback has bars to search. A zero-volume bar contributes nothing, and a span with no volume at all has no value.

With Fixed Time the sums start at the first bar at or after Anchor Time and accumulate bar by bar without re-anchoring. If the chart's loaded history begins after Anchor Time, or no time is set, nothing is drawn, so the line never starts from whichever bar happened to load first.

Limitations

  • In the swing modes the anchor is a rolling swing, not a fixed point. The line steps whenever a new extreme forms or the old one leaves the lookback. That is the anchor moving, not an error, but it means the line is not one continuous average.
  • A fixed anchor needs loaded history. In Fixed Time mode nothing is drawn unless the chart's history reaches back to Anchor Time. In the swing modes the anchor is always the extreme of the lookback.
  • The bands start narrow. Just after the anchor moves, only a few bars are in the sum, so Standard Deviation bands are tight and the line moves easily.
  • It depends on volume. The average is only as good as the volume the exchange reports for that market.
  • It is not a strategy. On its own it carries no risk management, sizing or exit.

Frequently asked questions

Anchored VWAP is a volume-weighted average price measured from a specific bar rather than from the start of the day. In Altrady Charts it starts from the lowest low or highest high of a lookback, or from a fixed time, and draws bands at a multiple of the volume-weighted standard deviation or at a percentage of the VWAP.

The regular VWAP resets at midnight UTC every day and has no bands. Anchored VWAP starts from the latest swing low or high within its lookback, or from a fixed time, so it can span many days and tracks the average cost since that point, with bands around it.

Yes. The indicator declares eleven inputs: Anchor, default Lowest Low (or Highest High, or Fixed Time); Anchor Lookback, default 200 with a minimum of 2; Anchor Time, used by Fixed Time; Source, default hlc3; Bands Calculation Mode, default Standard Deviation (or Percentage); three band multipliers, defaults 1, 2 and 3, each from 0.001 to 1000; and a show toggle for each pair of bands, with only the first on by default.

Closed bars keep the values they were calculated with. In the swing modes the line is not one continuous average: each bar uses the anchor as it stood on that bar, so when a new extreme forms, or the old one drops out of the lookback, the line steps to a new anchor. On the live candle this can happen mid-bar: if the current bar makes a new low, the anchor jumps to it and the value changes sharply until the bar closes. With Fixed Time the line is one continuous average from the anchor.

In the Lowest Low and Highest High modes the anchor is the lowest low or highest high of the last 200 bars by default. When a new extreme forms, or the bar holding the old one is more than the lookback away, the anchor moves and the average starts again from the new bar. A longer lookback moves the anchor less often. With Fixed Time the anchor does not move.

Add to chart