Volume-Weighted Moving Average (VWMA)VWMA

The volume-weighted moving average weights each closing price by that bar's volume, so heavily traded bars count more. Comparing it with a simple average of the same length shows whether volume is backing the move.

A simple moving average gives every close in its window the same weight. The volume-weighted moving average lets volume decide instead: a bar on which many shares changed hands pulls the average harder than a quiet one.1 It uses a fixed, rolling window of bars, so it is not cumulative.2 That makes it different from VWAP, which builds up from the session open and starts again each day.3 This entry shows the formula, three worked calculations and how traders read VWMA against a simple average.

Category
Indicators and Tools
Reading time
6 min
Also called
Volume-weighted MA
Updated

VWMA in plain words

Picture three days of closing prices. If almost all the trading happened on the third day, that day tells you more about where buyers and sellers agreed. VWMA counts each close as many times as it has volume, so busy days dominate.1

Put a VWMA and a simple average of the same length on one chart. When VWMA is above the simple average, volume was generally heavier on up days; when it is below, volume was heavier on down days.1

How to build and read VWMA, step by step

  1. Pick a period N

    N is the number of bars in the window. TA-Lib defaults to 30.4 Only the bars inside the window are used.2

  2. Multiply each close by its volume

    For every bar in the window, calculate close × volume.4

  3. Add up and divide

    VWMA = sum of (close × volume) ÷ sum of volume over the last N bars.4 With equal volume on every bar it gives the same value as a simple average.

  4. Roll the window forward

    Each new bar enters and the oldest bar drops out, so the window always holds N bars.2

  5. Compare with a simple average

    Plot an SMA of the same length. VWMA above the SMA points to heavier volume on up days, below it to heavier volume on down days.1 See Moving Average.

  6. Read the slope

    Like other averages, the slope of VWMA can be used to filter the Trend.1

Worked examples

Example 1 — A 3-bar VWMA in a rising market

Volume-backed

A hypothetical stock closes at $20.00, $21.00 and $22.00 on volumes of 1,000, 2,000 and 5,000 shares.

Example 1 — A 3-bar VWMA in a rising market — calculation
$20.00 × 1,000$20,000
$21.00 × 2,000$42,000
$22.00 × 5,000$110,000
Sum of close × volume$172,000
Sum of volume8,000
VWMA = $172,000 ÷ 8,000$21.50
SMA = $63.00 ÷ 3$21.00

The heavy volume came on the highest close, so VWMA sits $0.50 above the simple average. Volume is backing the rise in this hypothetical case.

Example 2 — Heavier volume on the way down

Selling volume

A hypothetical stock closes at $30.00, $29.00 and $28.00 on volumes of 1,000, 1,000 and 2,000 shares.

Example 2 — Heavier volume on the way down — calculation
$30.00 × 1,000$30,000
$29.00 × 1,000$29,000
$28.00 × 2,000$56,000
VWMA = $115,000 ÷ 4,000$28.75
SMA = $87.00 ÷ 3$29.00

VWMA is below the simple average because the largest volume came on the lowest close. That points to heavier trading on the down day.1

Example 3 — VWMA and VWAP at the next open

Comparison

Yesterday’s last two hypothetical bars closed at $10.30 (2,000 shares) and $10.40 (5,000). Today’s first bar has high $11.00, low $10.60, close $10.80 and 3,000 shares.

Example 3 — VWMA and VWAP at the next open — calculation
Today’s typical price$32.40 ÷ 3 = $10.80
VWAP after one bar$10.80
VWMA close × volume$20,600 + $52,000 + $32,400
VWMA = $105,000 ÷ 10,000$10.50

VWAP resets at the open and uses only today’s data, built on the typical price of high, low and close.3 The 3-bar VWMA still carries yesterday’s last two bars, so it sits $0.30 lower.

VWMA, SMA and VWAP

AspectWeightingWindow
Simple moving averageEvery close weighted equally1Rolling N bars
VWMAEach close weighted by its volume1Rolling N bars, not cumulative2
VWAPTypical price weighted by volume3Cumulative from the open, resets daily3

How traders use VWMA

  • Checking volume behind a trend

    VWMA above a same-length SMA suggests buying volume is stronger; below it suggests selling volume is stronger.1 See Volume.

  • Trend filter

    The slope of VWMA can be used to filter trades in the direction of the trend.1

  • Support and resistance

    TradingView lists spotting support and resistance among its uses.1 See Support and Resistance.

  • Multi-day view where VWAP stops

    VWAP is built for intraday analysis and is not defined for daily or weekly periods, so some traders use VWMA when they want volume weighting across days.3

Advantages and disadvantages

Advantages

  • Gives more weight to bars where more trading took place.1
  • The gap to a simple average shows whether volume confirms the move.4
  • Uses a rolling window, so it works across days, unlike a session VWAP.3
  • Simple to calculate with one setting.

Disadvantages

  • A single huge-volume bar can pull the average far towards its price.4
  • Needs reliable volume data, which spot forex and some CFD feeds do not provide. See Tick Volume and Real Volume.
  • It does not behave like most moving averages and should not be read as if it did.1
  • It still lags price, like every moving average.

Going deeper

Read as far as you need. Each level builds on the one before it.

A weighted average of closes

Beginner

VWMA is an average where volume decides how much each close counts.1 Busy bars matter more; quiet bars matter less.

Reading the gap to the SMA

Intermediate

TA-Lib describes VWMA as leading the SMA on high-volume moves and lagging it on low-volume drift, so the gap between the two shows how well volume confirms the move.4 A rising price with VWMA below SMA means the rise came on thin volume.

Equivalent formula and VWAP differences

Advanced

The same value can be written as SMA(close × volume, N) ÷ SMA(volume, N).4 VWAP differs in three ways: it uses the typical price, it is cumulative and it resets at each session open.3

Common mistakes

  1. Treating VWMA as VWAP

    VWAP is cumulative from the open and resets daily; VWMA is a rolling window.3 Their values differ, especially early in the session.

  2. Reading it like an SMA or EMA

    TradingView warns that VWMA does not behave like most moving averages.1

  3. Ignoring volume spikes

    One block trade or news bar can drag the line; check whether a jump came from price or from volume.

  4. Using it alone

    It works best alongside other indicators and price patterns.1

Check your understanding

Test yourself before moving on. Each answer comes with an explanation.

Q1Closes $50.00 and $52.00 with volumes 3,000 and 1,000. What is the 2-bar VWMA?
Q2VWMA is below a simple average of the same length. What does that suggest?

Key points to remember

  1. VWMA = sum of (close × volume) ÷ sum of volume over N bars.
  2. High-volume bars pull the average towards their price.
  3. VWMA above a same-length SMA means volume favoured up days; below means down days.
  4. Unlike VWAP, it is a rolling window and does not reset each session.
  5. It needs real volume data and still lags price.

Frequently asked questions

What is the difference between VWMA and VWAP?

VWAP is calculated from the session open, uses the typical price, is cumulative and resets each day.3 VWMA uses closing prices over a fixed rolling window of bars.2

What period should I use for VWMA?

There is no single standard. TA-Lib defaults to 30 bars.4 Many traders match the length of the simple average they compare it with.

Can I use VWMA on forex?

Spot forex has no central volume figure, so platforms often use tick volume instead. The result then weights by activity, not traded size. See Tick Volume and Real Volume.

Further learning

Sources

This article is written in our own words. The sources below support the specific facts, rules and figures marked with a number in the text. Links open the original publisher’s page.

  1. TradingView. Volume-Weighted Moving Average (VWMA) – Help Center (opens in a new tab) Checked .
  2. NinjaTrader. Moving Average - Volume Weighted (VWMA) (opens in a new tab) Checked .
  3. StockCharts ChartSchool. Volume-Weighted Average Price (VWAP) (opens in a new tab) Checked .
  4. TA-Lib. Volume Weighted Moving Average (VWMA) (opens in a new tab) Checked .

Educational content, not financial advice. Examples use hypothetical prices and simplified costs; actual fees, margin rules and regulations vary by broker, market and country. We are not affiliated with any publisher linked above. Last reviewed . Report an error or request a source credit.