TrendLagging trend-smoothing indicatorWMA

Weighted Moving Average WMA

A linearly weighted average — the newest bar counts most, the oldest least.

Quick Answer

A weighted moving average assigns linearly falling weights, so the newest bar counts most and the oldest least, giving a quicker response than an SMA. It sits between the SMA and EMA in speed and lag. On Nifty it is used where traders want faster trend tracking without the EMA's long exponential tail of old data.

Weighted Moving Average: key takeaways

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.

Weighted Moving Average at a glance

Weighted Moving Average — category, type and key settings
CategoryTrend Indicators
TypeLagging trend-smoothing indicator
Created byClassical technical analysis
Best timeframeAny; often used as a component of the HMA
Best settingsSimilar lengths to the EMA — 20, 50 for swing; shorter for intraday
Settings to avoidVery short WMAs on noisy charts
Works best inTrending markets
Struggles inChoppy ranges

Weighted Moving Average 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

25663.723687.1PriceTime (illustrative bars →)WMA 20
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.

Weighted Moving Average: 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.

Weighted Moving Average 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 Weighted Moving Average is calculated

  1. Choose a length N and use the closing prices.
  2. Multiply the newest close by N, the next by N−1, and so on down to 1 for the oldest.
  3. Sum these weighted prices.
  4. Divide by the sum of the weights, N(N+1)/2.
  5. Plot the result and recompute each bar as the window rolls forward.

Weighted Moving Average: 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.

Weighted Moving Average: 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.

Weighted Moving Average: 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 misconceptions about Weighted Moving Average

  • Misconception: The WMA's recency weighting makes it lead price rather than lag it.
    Reality: No, the WMA is a lagging indicator based on past prices. Its recency weighting simply reduces the lag compared with an SMA.
  • Misconception: The WMA and the EMA are the same weighting scheme under two names.
    Reality: No — both favour recent prices, but the WMA uses a straight-line weighting over a fixed window while the EMA uses exponential decay with a long tail.

Common mistakes with Weighted Moving Average

  • 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.

How professionals use Weighted Moving Average

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.

Weighted Moving Average: frequently asked questions

How is the WMA calculated?

You multiply the newest price by N, the next by N−1, and so on down to 1, sum the results, and divide by the sum of the weights N(N+1)/2. The recency weighting front-loads the average.

How is the WMA different from the EMA?

Both weight recent prices more, but the WMA uses a linear weighting over a finite window while the EMA uses exponential decay with an infinite tail. Their responsiveness is similar, but the WMA's window has a hard cut-off.

How is the WMA different from the SMA?

The SMA weights every bar equally, whereas the WMA weights recent bars more. As a result the WMA reacts faster to price changes but whipsaws a little more in ranges.

What is the WMA used for?

It is used like any moving average — for trend direction, dynamic support and resistance, and crossovers — and it is the core building block of the Hull Moving Average.

Is the WMA better than the EMA?

Neither is clearly better; they are alternative recency-weighting schemes. The WMA has a finite window and linear weights, the EMA an exponential tail; the choice is a matter of preference and platform.

Why is the WMA important for the Hull Moving Average?

The Hull Moving Average is built entirely from weighted moving averages combined to cancel lag, so the WMA is the engine behind the HMA's low-lag behaviour.

What are good WMA settings?

Lengths similar to those used for the EMA work well — around 20 and 50 for swing trading and shorter for intraday. The right length depends on your timeframe.

Does the WMA work on Bank Nifty?

Yes, its faster response suits Bank Nifty's trends, but the same speed means more whipsaw in the index's choppy phases, so it is best used in clear trends.

Sources & references

Published 7 July 2026. Educational content only — not investment advice.

Educational content only — not investment advice. Indicator diagrams are illustrative, computed from a fixed synthetic price series. Trading involves substantial risk. See our Risk Disclosure and SEBI Disclaimer.