Technical Indicators

VWAP (Volume-Weighted Average Price): Intraday Fair Value for Bots

How VWAP and anchored VWAP are calculated, why they matter intraday, how FX tick volume changes the picture, and how bots use VWAP as a bias filter, mean-reversion target or grid anchor.

By AlgoXP3 min readUpdated

Intraday price with the session VWAP line

VWAP - the volume-weighted average price - is the average price paid since a starting point, weighted by how much traded at each price. Institutional traders use it as an intraday benchmark of fair value. For trading bots it offers a simple, meaningful reference line: are we trading above or below the average price of the session?

How VWAP is calculated

For each bar since the anchor (usually the session start):

  1. Typical price = (high + low + close) / 3.
  2. Multiply by the bar’s volume.
  3. VWAP = cumulative (typical price × volume) / cumulative volume.

Because it is cumulative, VWAP moves quickly early in the session and becomes steadier as volume accumulates.

Anchored VWAP uses the same formula but starts from a chosen event: a swing high or low, a breakout, a news release, the start of the week.

Volume in FX and CFDs

Spot FX has no central exchange. Platforms show tick volume - the number of price updates per bar. Tick volume rises and falls with real activity, so VWAP built on it still marks the “busy” price area, but it is an approximation. For index and commodity CFDs the same caveat often applies. Compare VWAP behaviour on your broker’s feed before relying on precise touches.

How to read VWAP

  • Price above VWAP - buyers in control since the anchor; below - sellers.
  • Distance from VWAP - stretched moves often return toward it intraday.
  • Slope - rising VWAP in a trending session, flat VWAP in a balanced one.
  • Standard-deviation bands around VWAP frame “normal” intraday extremes.

How bots use VWAP

Bias filter

Allow only longs above session VWAP and shorts below it. A simple filter that keeps intraday strategies on the side of the session’s flow.

Mean-reversion target

When price stretches two standard deviations from VWAP without news, a mean-reversion bot can fade the move with VWAP as the target.

In a trending session, buy pullbacks to VWAP when VWAP is rising, with a stop below the pullback.

Grid anchor

Grid systems need a centre. Using VWAP as the anchor keeps the grid around the session’s fair value instead of an arbitrary price. AlgoXP’s Inca Gold Grid AI Pro can build its grid around EMA, VWAP or Donchian anchors.

A worked example

US index CFD, M5, first two hours after the cash open:

  • Bias: longs only when price is above session VWAP and VWAP is rising.
  • Entry: pullback that touches VWAP and closes back above it.
  • Stop: 1 × ATR(14) below the pullback low.
  • Target: previous session high or 2R.
  • No trades in the last hour before the close.

Pitfalls

  • Wrong session start. VWAP must reset at the session you actually trade, in server time. See trading sessions and server time.
  • Early-session noise. In the first bars VWAP is based on little volume and jumps around.
  • Treating VWAP as support. It is an average, not a wall. Price can cross it repeatedly in balanced sessions.
  • Multi-day use of daily VWAP. For swing trading, anchored VWAP from a meaningful event is more appropriate.

Key takeaways

  • VWAP is the volume-weighted average price since an anchor.
  • In FX and many CFDs it relies on tick volume - useful, but approximate.
  • Bots use it as a bias filter, a mean-reversion target, a pullback level or a grid anchor.
  • Reset it at the right session time and avoid over-reading early-session values.

FAQ

Does VWAP work in forex?

Yes, with a caveat. Spot FX has no central exchange volume, so platforms use tick volume (the number of price changes). It correlates with activity and makes VWAP useful, but it is not the same as exchange-traded volume.

When does VWAP reset?

Standard VWAP resets at the start of each session or day. Anchored VWAP starts from a point you choose, such as a swing low or a news event.

Is price above VWAP bullish?

It shows that buyers have paid more than the average price since the anchor, which many traders treat as an intraday bullish bias. It is a context filter, not a signal on its own.

Sources and further reading

  1. StockCharts ChartSchool: Volume-Weighted Average Price (VWAP) - chartschool.stockcharts.com
  2. StockCharts ChartSchool: Anchored VWAP - chartschool.stockcharts.com