Volume weighted moving average

VWMA
Indicator

TrendOn the price chartFree on ChartLabs

The volume weighted moving average is the average of the last 20 closes, each close weighted by that bar's volume. Heavy bars pull it more than quiet ones.

Published by Buff Dormeier, 2011. Reviewed by the ChartLabs team, updated Nov 2026.

Example market1hIndicatorsAtlas AIVWMAchartlabs.co/charts
Atlas reads it

The close is under the volume weighted average.

VWMA 67,701.3

Atlas reads it

The close is under the volume weighted average.

VWMA 67,701.3

Illustration on simulated data.

Volume weighted moving averageWhat is the VWMA indicator?

VWMA draws one blue line (#2962FF, 1 px) on the price chart. The default length is 20 and the default source is the close.

Each bar adds source times volume, and the average is that sum divided by the sum of volume, over the last 20 bars. A bar with twice the volume counts twice as much. The first value appears when 20 bars exist, on record 19. If every bar in the window has zero volume, the average is blank rather than a divide by zero.

Set next to a simple average of the same length, VWMA sits closer to the bars that traded the most. It does not decide whether that volume was buying or selling. It only weights the price.

Volume has to be real

A market with empty volume, or a chart that does not supply it, leaves the line blank whenever the window sums to zero.

Not VWAP

VWAP resets on a session and uses typical price. VWMA is a rolling window of the source you pick, weighted by volume.

VWMA signalsFive patterns to know.

1Bullish lean

Close above VWMA

The close is above the volume weighted average of the last 20 closes.

2Bearish lean

Close under VWMA

The close is under that average.

3Inconclusive

Close crosses VWMA

Price has moved through the volume weighted average.

4Inconclusive

Price riding the line

The close stays close to the average. Volume and price are not pulling it away.

5Inconclusive

Line pulled by a heavy bar

A high-volume bar moves VWMA more than the same price on a quiet bar would.

VWMA formulaHow it is calculated.

VWMA=∑(close×volume)∑volume over the last 20 bars
STEP 1

Weight each bar

Multiply the source by that bar's volume. The default source is the close.

STEP 2

Sum the window

Add those products over the last 20 bars, and add the volume over the same bars.

STEP 3

Divide

Divide the product sum by the volume sum. The first result is on record 19. A window with no volume is blank.

VWMA settingsEvery setting, explained.

SettingDefaultRangeWhat it changes
Length201 to 2,000Bars in the sums. Shorter lets one heavy bar move the line more.
SourceCloseAny price, or volumeThe price that volume weights. High, low and volume still come from the bar.
LineBlue #2962FF, 1 pxFixedOne line on the price chart.
Setting
Length
Default
20
Range
1 to 2,000
What it changes
Bars in the sums. Shorter lets one heavy bar move the line more.
Setting
Source
Default
Close
Range
Any price, or volume
What it changes
The price that volume weights. High, low and volume still come from the bar.
Setting
Line
Default
Blue #2962FF, 1 px
Range
Fixed
What it changes
One line on the price chart.
206 turns in view
70,20866,82563,44360,06164,803.7

Drag to see how the setting changes the lines and how many signals you get. Illustration on simulated data.

VWMA strategiesUse it in 3 setups.

Bias with the side of the line

Whilethe close is aboveVWMAfavourlongs

Above the line, the close is above the volume weighted average. Traders often use that as a filter, not a trigger.

Cross as the trigger

Ifthe close crossesVWMAexit whenit crosses back

A cross is price moving through the weighted average. Many traders want the slope of the line on the same side.

Trust a cross that volume supports

Ifthe cross bar's volumeisabove recent barsthengive it more weight

The line itself already weights volume. A cross on a heavy bar moves both price and the average.

Test a rule in the Strategy TesterFree with 1 year of history. Past results do not guarantee future results.

VWMA mistakesCommon mistakes.

Reading VWMA as buying pressure

Volume here is size, not side. A heavy down bar pulls the average toward that close just as a heavy up bar does.

Using a very long length as an entry

A long window lags price. The cross comes after the move that made it.

Treating a touch as a signal

In a quiet market the close sits on the average often. A touch is not a setup.

VWMA combinationsPair it with these.

VWMA FAQQuestions traders ask.

What are the default VWMA settings?

Length 20 and source close. Volume always supplies the weights.

How is VWMA different from a simple average?

A simple average weights every close the same. VWMA weights each close by that bar's volume.

How is it different from VWAP?

VWAP anchors to a session and uses the typical price. VWMA rolls over a fixed number of bars and uses the source you set, close by default.

When does the line start?

On record 19 with the default 20, once a full window exists. Earlier bars are blank.

What if volume is zero?

A window whose volume sums to zero is blank. One zero-volume bar inside a window is simply ignored by the sums.

Is VWMA leading or lagging?

Lagging. It is an average of bars that have already traded.

Does VWMA repaint?

No. A closed bar keeps its value. The live bar moves until it closes, and its volume is still changing, so the live value moves with it.

What timeframe can I use?

Any chart that has volume. Without volume the line has nothing to weight.

Who published VWMA?

Buff Dormeier, in Investing with Volume Analysis (2011). ChartLabs uses a 20-bar window of the source times volume, divided by volume.

Related indicatorsMore trend tools.

All trend indicators

Try VWMA on a live chart.
Free. No download.

Works in your browser and on iPhone too.

Example market1h
VWMA (20, close)