A Weighted Moving Average (WMA) is a statistical technique used to smooth data by assigning different weights to different data points in a time series. Unlike a Simple Moving Average (SMA), where all data points carry equal weight, the WMA gives more importance to recent data, making it more responsive to new trends.
How Weighted Moving Average Works:

Choose a Window (Period): Decide how many past data points (e.g., 3-day, 5-day, 10-day) to include.
Assign Weights: Assign higher weights to more recent data points and lower weights to older ones.
Calculate the Average: Multiply each data point by its weight, sum them up, and divide by the sum of the weights.
Example Calculation (3-Day WMA):
Suppose we have closing stock prices over 3 days:
| Day | Price | Weight |
|---|---|---|
| 1 | $50 | 1 |
| 2 | $52 | 2 |
| 3 | $54 | 3 |
Calculation:
WMA=1+2+3(50×1)+(52×2)+(54×3)=650+104+162=6316≈52.67
Key Features of WMA:
✔ More sensitive to recent data than SMA.
✔ Helps in trend identification and reducing lag.
✔ Commonly used in technical analysis (stock trading, forecasting).
Comparison with Other Averages:
| Type | Equal Weights? | Sensitivity to Recent Data |
|---|---|---|
| SMA | Yes | Low |
| WMA | No (higher for recent) | High |
| EMA (Exponential MA) | No (exponential decay) | Very High |
Applications:
Stock trading (identifying buy/sell signals).
Economic forecasting.
Inventory management.
