Back to blog
November 19, 20267 min read

Anchored VWAP as a Custom Indicator: Setting the Anchor, Bands and Session Right

VWAP, the volume-weighted average price, shows the average price traded since a starting point, weighted by volume. With an anchored VWAP you choose that starting point yourself, such as a high, a low or a news release. Three decisions determine what the line shows: the anchor, the price source and the bands.

How VWAP is calculated

From the anchor onwards, price times volume is summed for every execution and divided by the total volume. That leads to a property that's often overlooked: the more volume has built up since the anchor, the less each new trade moves the line. A VWAP anchored to the start of the week is considerably more sluggish by Friday than one that started an hour ago.

The anchor decides which question the line answers

  • Session start: the classic VWAP that restarts every trading day - the average price of all participants since the open
  • Start of week or month: the same idea over a longer period, correspondingly more sluggish
  • A significant high or low: the average price of everyone who has traded since that turning point
  • An event: a news release, a gap, or the start of a breakout

Especially important for futures: which session counts?

Index futures trade almost around the clock. A VWAP from the start of the full electronic session, overnight included, differs from one starting at the open of the regular US cash session, because far less usually trades overnight and price may sit elsewhere. Neither is wrong. What matters is that the indicator, the bot and your own reading of the chart use the same definition - and that the start time is set in exchange time, not local time.

For why local times for sessions slip several times a year, see the article on trading hours and time zones in a bot.

Price source: every trade or bar values?

The exact VWAP uses the price and volume of every single execution. Many implementations approximate it with one price per bar instead, often the typical price from high, low and close, multiplied by the bar's volume. How good that approximation is depends on bar size: on one-minute bars it sits close to the exact value, on hourly bars it's clearly off. That's one of the most common reasons two platforms show slightly different VWAP values for the same market.

A VWAP with exactly your anchors and bands?

Describe how the line should be calculated and when it should alert you - the feasibility check and quote are free and non-binding.

Request a project

Bands: not every standard deviation is the same

  • Volume-weighted standard deviation around the VWAP: measures how far from the average price trading took place, weighted by volume - the most internally consistent variant
  • Plain standard deviation of prices: ignores volume and therefore diverges, especially when volume is concentrated in a few phases
  • Percentage bands: a fixed percentage distance from the VWAP, regardless of how much the market is moving
  • Common to all: right after the anchor, statistical bands sit close together because the dispersion has yet to form. In the first minutes they say correspondingly little

What a custom VWAP indicator should make adjustable

  • Anchor: session, week, month, set freely, or placed automatically at highs and lows
  • Session definition and the time zone the start is set in
  • Price source: individual trades or bar values, and for bars, which price
  • Band type and multipliers
  • Several anchors at once, such as the session VWAP together with a VWAP from the last weekly high
  • Alerts when a band is touched or a bar closes beyond it

For how VWAP complements volume profile levels, see the article on custom volume profile indicators.

For why points placed after the fact are a problem for automated rules, see the article on repainting.

Frequently Asked Questions

What's the difference between VWAP and anchored VWAP?

The classic VWAP restarts automatically with every trading session. With an anchored VWAP you set the starting point yourself, for example at a high, a low or an event. The calculation is the same, only the starting point is freely chosen.

Why do two platforms show different VWAP values?

Usually because of one of the three core decisions: a different session start, a different price source - individual trades or bar values - or a different band calculation. Even small differences in the session definition can shift the line noticeably.

Is VWAP a trading signal?

Not on its own. It's a reference price showing where trading took place on average. Whether a distance from VWAP or a return to it gets traded is a question of strategy, not of the indicator.

Does a VWAP change after the fact?

With a fixed anchor, closed bars stay unchanged and only the current value moves. Automatic anchors at highs and lows are different: a high is only confirmed after a few bars. If the anchor is then placed retroactively, the line's history changes.

VWAP is one of the simplest indicators there is - which is exactly why the decisions behind it so rarely get noticed. Set the anchor, session, price source and bands deliberately, and you get a line that answers precisely the question you're asking.

Have an idea for ATAS?

Tell us about your project - you'll get a free, non-binding quote within 24-48 hours.

Request a Free Quote