Weighted Moving Average WMA
A linearly weighted average — the newest bar counts most, the oldest least.
Quick answer: A weighted moving average assigns linearly decreasing weights to the prices in its window, so the most recent bar carries the most weight and the oldest the least, giving a faster response than an SMA.
In simple words
The WMA is a middle ground between the SMA and the EMA. Instead of weighting every bar equally (SMA) or with exponential decay (EMA), it uses a straight-line weighting: in a 5-period WMA the newest bar is multiplied by 5, the next by 4, and so on down to 1 for the oldest. This front-loads the average toward recent price, so the WMA reacts faster than the SMA while using a simple, transparent weighting scheme. It is also the building block of the Hull Moving Average.
Weighted Moving Average — visual
How Weighted Moving Average looks on a chart
The WMA weights bars linearly — newest highest, oldest lowest — so it tracks price faster than the SMA but with a simpler scheme than the EMA.
Professional explanation
Linear weighting explained
In an N-period WMA the most recent price is multiplied by N, the one before by N−1, and so on down to 1 for the oldest, then the total is divided by the sum of the weights (1+2+…+N). This straight-line emphasis on recent data makes the WMA more responsive than the equal-weighted SMA, and its weighting is easier to reason about than the EMA's exponential decay.
Where the WMA sits between SMA and EMA
In responsiveness, the WMA generally lands between the SMA and the EMA — faster than the SMA, and depending on settings, comparable to or slightly different from the EMA. Unlike the EMA, the WMA has a finite window: prices older than N bars have zero weight, so it does not carry an infinite tail of history. That makes its behaviour a little more predictable at the cost of the EMA's smoother decay.
Its role in the Hull Moving Average
The WMA's most important modern use is as the engine of the Hull Moving Average. Alan Hull combined several WMAs of different lengths to cancel out lag while keeping smoothness. So even traders who never plot a raw WMA rely on it indirectly whenever they use the HMA — understanding the WMA is the key to understanding the HMA.
Practical trade-offs
The WMA is used like any moving average — slope for direction, pullbacks for dynamic support/resistance, crossovers for entries. Its faster response helps in trends but, like the EMA, costs a little extra whipsaw in ranges. It is less commonly offered as a standalone default than the SMA or EMA, but it remains a clean, transparent choice when you want more recency bias than an SMA without the EMA's infinite tail.
Formula
Weighted Moving Average formula
WMA = (N×Pₜ + (N−1)×Pₜ₋₁ + … + 1×Pₜ₋ₙ₊₁) / (N + (N−1) + … + 1)
The most recent price Pₜ gets weight N and the oldest gets weight 1. The denominator is the triangular number N(N+1)/2.
- Pₜ, Pₜ₋₁ … — The prices in the window, newest to oldest (usually closes)
- N — Look-back length; also the weight on the newest bar
- Weights — Linearly decreasing integers N, N−1, …, 1
- N(N+1)/2 — The sum of the weights used as the denominator
How it is calculated
- Choose a length N and use the closing prices.
- Multiply the newest close by N, the next by N−1, and so on down to 1 for the oldest.
- Sum these weighted prices.
- Divide by the sum of the weights, N(N+1)/2.
- Plot the result and recompute each bar as the window rolls forward.
Interpretation & signals
Traders use the WMA like any moving average — slope for direction, price position for bias, crossovers for entries — but expect a faster response than an SMA because of its recency weighting.
Buy / bullish signals
- Price crosses above a rising WMA.
- A fast WMA crosses above a slow WMA.
- In an uptrend, price pulls back to the WMA and bounces.
- The WMA turns from flat to sloping up.
Sell / bearish signals
- Price crosses below a falling WMA.
- A fast WMA crosses below a slow WMA.
- In a downtrend, price rallies to the WMA and rolls over.
- The WMA turns from flat to sloping down.
False signals to beware
- Its recency bias makes it whipsaw in ranges like other fast averages.
- Crossovers without a trend behind them fail.
- On short lengths it reacts to single-bar spikes.
Settings, timeframe & conditions
Advantages & limitations
Advantages
- Faster than the SMA thanks to recency weighting.
- Transparent, easy-to-understand linear weighting.
- Finite window — no infinite tail of old data.
- The foundation of the low-lag Hull Moving Average.
Limitations & disadvantages
- More whipsaw than the SMA in ranges.
- Less smooth decay than the EMA.
- Less commonly offered as a platform default.
- Still a lagging indicator.
Combining Weighted Moving Average with other indicators
- Hull Moving Average — The WMA is the engine of the HMA; understanding one clarifies the other and the two are often compared.
- Relative Strength Index — Use the WMA for trend and RSI to time pullback entries within it.
- Exponential Moving Average — Comparing a WMA and an EMA of the same length shows how different recency-weighting schemes trade smoothness for speed.
Practical examples (Nifty & Bank Nifty)
NIFTY example
Nifty is trending up and a 20-period WMA tracks the rally a touch more closely than a 20-SMA would, because recent closes dominate its value. When Nifty pulls back to the WMA near 24,200 and resumes, the WMA's recency bias means it had already turned up slightly ahead of the SMA, giving a marginally earlier read of the resumption.
BANKNIFTY example
Bank Nifty whips around intraday, and a short WMA hugs the fast moves closely — helpful in the trend legs but prone to the same false crosses as an EMA in the chop. A trader uses the WMA for direction on the trending 15-minute legs and steps aside when the WMA flattens and price coils, avoiding its range-bound whipsaws.
Common mistakes
- Assuming the WMA is smoother than the SMA — it is faster, not smoother.
- Using very short WMAs on noisy charts.
- Trading WMA crosses in a range.
- Overlooking that the WMA underpins the HMA.
Professional usage
Professionals use the WMA less often as a standalone line than as a well-understood building block — most importantly inside the Hull Moving Average, where blended WMAs cancel lag. When used directly, it serves the same role as an EMA: a recency-weighted trend line for direction and pullback entries, chosen when a trader wants a finite window and a transparent linear weighting rather than the EMA's exponential tail.
Key takeaway
The WMA weights recent bars more using a simple linear scheme, making it faster than the SMA with a transparent, finite window. Its biggest role is as the engine of the Hull Moving Average — but as a standalone it is a clean, recency-biased trend line.
Frequently asked questions
What is a weighted moving average?
How is the WMA calculated?
How is the WMA different from the EMA?
How is the WMA different from the SMA?
What is the WMA used for?
Is the WMA better than the EMA?
Is the WMA a leading indicator?
Why is the WMA important for the Hull Moving Average?
What are good WMA settings?
Does the WMA work on Bank Nifty?
Voice search & related questions
Natural-language questions people ask about Weighted Moving Average.
What is a weighted moving average in simple words?
Is the WMA the same as the EMA?
What is the WMA used for?
Is the WMA faster than the SMA?
Sources & references
Last reviewed 8 July 2026. Educational content only — not investment advice.