Indicator Formula

Technical Details — Volume-Weighted Simple Moving Average (VWSMA)
Section titled “Technical Details — Volume-Weighted Simple Moving Average (VWSMA)”Overview
Section titled “Overview”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
Step 1 — Calculate VWSMA
Section titled “Step 1 — Calculate VWSMA”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
- Simplest VW Average: Just a volume-weighted arithmetic mean
- Equivalent to Rolling VWAP: VWSMA over n bars is essentially a rolling VWAP
- Drop-Off Effect: Like SMA, dropping a high-volume bar from the window can cause shifts
- Requires Volume Data: Only meaningful with reliable volume data