Skip to content

Indicator Formula

Technical Details — Volume-Weighted Simple Moving Average (VWSMA)

Section titled “Technical Details — Volume-Weighted Simple Moving Average (VWSMA)”

The Volume-Weighted SMA (VWSMA) is functionally similar to VWAP — it calculates a simple average of volume-weighted prices over the lookback window. Each bar’s price is weighted by its volume relative to total volume in the period.


Mathematical Derivation

Purpose: Sum volume-weighted prices and divide by total volume.

$$VWSMA[t] = \frac{\sum_{i=0}^{n-1} Close[t-i] \times Volume[t-i]}{\sum_{i=0}^{n-1} Volume[t-i]}$$

Where:

  • $$n$$ = Period

What This Measures: Simple volume-weighted average price



Compact Formula Summary

$$VWSMA[t] = \frac{\sum Close[i] \times Volume[i]}{\sum Volume[i]}$$

Default Parameter: Period (n) = 14


Complete Calculation Example

With prices [44, 45, 46] and volumes [100, 300, 100]: $$VWSMA = \frac{44×100 + 45×300 + 46×100}{500} = 45.00$$


Key Takeaways from the Example
  1. Simplest VW Average: Just a volume-weighted arithmetic mean
  2. Equivalent to Rolling VWAP: VWSMA over n bars is essentially a rolling VWAP
  3. Drop-Off Effect: Like SMA, dropping a high-volume bar from the window can cause shifts
  4. Requires Volume Data: Only meaningful with reliable volume data