Concept

VWMA

VWMA, also known as volume-weighted MA, is a Trend concept. A reference entry: the Library explains it rather than implements it.

What is a VWMA?

A VWMA (volume-weighted moving average) is a rolling average in which each bar's price is weighted by that bar's volume: over the last N bars, the sum of price times volume divided by the sum of volume. Bars that traded heavily pull the average toward their price; bars that drifted on thin volume barely move it. When volume is evenly spread, the VWMA converges on the plain SMA of the same length.

The point is to let participation, not just time, define the average price. The most common read compares the VWMA with a same-length SMA: a VWMA above the SMA says the window's heavier volume traded at higher prices, while a VWMA below says volume concentrated at lower prices. It is distinct from session VWAP, which accumulates from a fixed anchor rather than rolling a window. Volume weighting describes where business was done; it does not by itself guarantee follow-through.

The spread between the VWMA and its SMA twin is informative enough that tools formalize it: tkarolak's VWMA/SMA Delta study treats unusual gaps between the two as statistical anomalies worth flagging, and variants push the same weighting into other structures, from RezzaHmt's volume-weighted EMA to AlgoAlpha's volume-weighted median. The family shares one premise: an average that ignores participation treats a ten-times-volume climax bar and a lunchtime drift bar as equals, and for questions about conviction that is the wrong arithmetic.

The construction also has quirks worth knowing before trusting it. A single enormous bar dominates the average for exactly N bars and then falls out of the window, so the VWMA can lurch on quiet days purely because an old climax expired. On markets without true traded size, such as spot forex, the weights are tick counts rather than business done. And volume weighting does nothing about lag: the VWMA turns roughly as late as an SMA, so it refines what the average says about participation, not when it says it.

How to calculate a VWMA

The VWMA is a rolling volume-weighted mean. For a lookback of N bars:

  1. 1Choose the lookback N and a price source (close is standard).
  2. 2For each of the last N bars, multiply the bar's price by the bar's volume.
  3. 3Sum those products and divide by the total volume over the same N bars, then roll the window forward each bar.
  4. 4For interpretation, plot a same-length SMA beside it: the gap between the two shows how much volume is skewing the average, and in which direction.

How it's calculated

A moving average that weights each bar's price by its volume, so heavily traded bars pull the average more than quiet ones.

VWMAt=i=0n1(Pti×Vti)i=0n1Vti\operatorname{VWMA}_t = \frac{\sum_{i=0}^{n-1} (P_{t-i} \times V_{t-i})}{\sum_{i=0}^{n-1} V_{t-i}}
VWMA_t: volume-weighted moving average at bar t
P_(t-i): price of bar t - i, typically the close
V_(t-i): volume of bar t - i
n: lookback length (commonly 20)
i: bar offset within the window, 0 for the current bar
t: bar index

If volume is equal on every bar in the window, VWMA equals the SMA of the same length.

It is a rolling window, unlike VWAP, which is a cumulative average from a fixed anchor.

On instruments without true volume (spot forex, many indices) the weights are tick volume.

How traders use it

  • As a volume-confirmation spread: the VWMA/SMA gap gauges whether the current move is volume-backed, widening when heavy bars lead the move and closing when it runs on thin participation.
  • In crossover logic, with price/VWMA or VWMA/SMA pairs serving as a volume-aware alternative to standard MA crosses.
  • As a trend filter with participation baked in: holding above a rising VWMA means price trades above the average price at which recent volume changed hands.
  • To vet breakouts: a VWMA accelerating with the move supports the case that volume backed the breakout, while a flat VWMA warns the push was thin.
  • As participation-aware dynamic support: pullbacks that hold at a rising VWMA are holding above the price where recent business concentrated, a volume-weighted version of the dynamic S/R via MA read.

VWMA vs related averages

Session VWAP: VWAP accumulates price times volume from a fixed anchor, usually the session open, and resets there; it is the average price paid since the anchor. A VWMA rolls a fixed window continuously and never resets.

SMA: The SMA weights every bar equally regardless of activity. The VWMA deviates from it exactly when volume is lopsided, which is why the spread between the two is itself used as a signal.

Elastic Volume-weighted MA: The eVWMA drops the fixed window and updates in proportion to each bar's share of a chosen total volume, behaving like an EMA whose speed is set by volume. Same goal as the VWMA, different machinery.

Concept family

Trend

100 concepts mapped · 100 in the Library

VWMA FAQ

Turn VWMA into a trading strategy.

Describe your VWMA idea to Quant. It builds the strategy with you and backtests it on real data.