Trend & directionWeighted Moving Average · WMA
A moving average with linearly decreasing weights — the newest bar counts most, the oldest least.
Works best in trending marketsEngine-computed on a fixed sample series
What it is
A Weighted Moving Average, or WMA, is a trend-following average that deliberately counts recent prices more than older ones, using weights that step down in a straight line. Where a Simple Moving Average treats every bar in its window as equally important, the WMA multiplies the newest close by the biggest weight and the oldest by the smallest, so fresh information dominates the line. The question it answers is the same as any moving average, namely what is the smoothed underlying direction of price, but it answers with a line that turns more quickly than an equally weighted average of the same length. For a beginner, imagine averaging your recent test scores but caring most about the latest one because it best reflects where you are now; that is exactly the emphasis a WMA applies to price. It is also the fundamental building block of faster hybrids such as the Hull Moving Average.
How it is calculated
To compute an N-period Weighted Moving Average, you multiply the most recent close by N, the close before it by N minus one, the next by N minus two, and so on down to the oldest close, which is multiplied by one. You add all those weighted prices together to get the numerator. The denominator is the sum of the weights themselves, which for a run of consecutive integers from one to N equals N times N plus one, divided by two. Dividing the weighted price sum by that weight sum gives the WMA for the current bar, and the window then slides forward one bar and the whole thing recomputes. The weighting is linear, meaning the importance of each bar declines by an equal step as you move back in time, which is a different decay shape from the exponential moving average's curved, recursive fade. That linear front-loading is what makes the WMA sit closer to price than a Simple Moving Average of the same length.
Reading it, step by step
You read a WMA exactly as you read any moving average, but with the knowledge that it reacts faster than the simple version. Its slope is the first thing to read: a rising WMA says the recent-weighted trend is up, a falling one says down, and a flattening one warns the trend is stalling. Its position relative to price is the second thing: price above the WMA is bullish and price below is bearish, and the line often acts as dynamic support or resistance that price pulls back to and bounces from. Crossovers matter too, both of price through the line and of a fast WMA through a slow one, and because of the front-weighting these crosses fire earlier than with a Simple Moving Average. The distance between price and the WMA hints at how stretched a move is, since price tends to snap back toward a rising average after running too far ahead of it.
Best timeframes and settings
Typical WMA lengths run from about nine for short-term trading up to fifty for intermediate trend context, and the average works on every timeframe from intraday to weekly. Scalpers and day traders favor short lengths like nine or twenty for a responsive line that tracks fast moves, while swing and position traders use forty or fifty for a steadier trend read. Shortening the length makes the line hug price and turn sooner, which catches trends early but also reacts to noise and single sharp bars; lengthening it smooths the line and filters noise at the cost of later turns. Because the newest bar carries the heaviest weight, a WMA is inherently more sensitive to a single outlier close than a Simple Moving Average of the same length, so on jumpy instruments you may prefer a slightly longer window. The trade-off is the eternal one for averages: responsiveness versus smoothness, dialed by the length.
When and where to use it
The WMA is a trend tool and is at its best in trending markets, where its quicker response gets you aligned with a move earlier than a Simple Moving Average would. It suits traders who want faster feedback than the simple average but prefer the transparent, explicit linear weighting to the exponential average's recursive decay. It works across all liquid asset classes, from stocks and futures to foreign exchange, and it is especially valuable as a component inside other indicators, most famously as the three weighted averages that combine to form the Hull Moving Average. Where it struggles is the sideways, choppy market, where any moving average produces false crossovers, and the WMA's front-weighting can make those whipsaws slightly worse by reacting sharply to each fake breakout. In a range, it is better used as a boundary reference than as a crossover trigger.
Strategies that use it
The first strategy is the price-cross trend follow: go long when price closes above a chosen WMA, such as a twenty-period, and exit or reverse when it closes back below, ideally only in the direction of a longer-term average's slope to avoid range whipsaws. The second is the dual-WMA crossover, pairing a fast average like a nine with a slower one like a twenty-one and entering when the fast crosses above the slow, exiting on the opposite cross, which the front-weighting makes more responsive than a Simple Moving Average pair. The third is the dynamic support-and-resistance pullback: in an established uptrend, buy when price dips back to a rising WMA and holds, placing a stop just below the average, and mirror that for shorts in a downtrend. In each case the WMA's job is to define the trend and the level, and disciplined stops just beyond the line keep the inevitable false signals from becoming large losses.
Combining it with other indicators
A WMA pairs well with a longer, slower average to provide trend context, so you only take the fast WMA's signals in the direction the slow line is pointing. Momentum oscillators such as the Relative Strength Index or MACD complement it by confirming that a WMA crossover has momentum behind it rather than being a hollow move. The Average Directional Index is a useful filter that tells you whether the market is trending strongly enough for the WMA's crossover signals to be trustworthy, keeping you out during flat chop. Volume tools add conviction to a price-through-WMA breakout by showing whether participation is expanding. Because the WMA is itself the raw material of the Hull Moving Average, you can also step up to that hybrid when you want the WMA's responsiveness with much of its noise removed, rather than layering two plain averages of similar length that would only echo each other.
Where it fails
The WMA's front-loaded weighting is a double-edged sword: it makes the line responsive, but it also makes it jump on a single sharp bar, so a one-off spike or a bad print can yank the average and produce a premature signal. Like every moving average it lags at genuine reversals, arriving after the turn has begun, and like every average it whipsaws in a range, handing out false crossovers when price chops sideways. Traders sometimes assume a faster line is simply better and use too short a length, only to drown in noise. Others confuse the WMA's linear decay with the exponential average's curved decay and expect the two to match, which they never will. The defenses are to filter signals with a trend gauge so you skip range crosses, to choose a length appropriate to the instrument's noisiness, and to remember that the WMA's speed is bought with extra sensitivity to outliers.
A worked example
Take a simple five-period Weighted Moving Average and suppose the last five closes, from oldest to newest, are 10, 11, 12, 13, and 14. The weights, matched newest to oldest, are 5, 4, 3, 2, and 1, so the weighted sum is 5 times 14 plus 4 times 13 plus 3 times 12 plus 2 times 11 plus 1 times 10, which is 70 plus 52 plus 36 plus 22 plus 10, totaling 190. The sum of the weights is 15, so the WMA is 190 divided by 15, about 12.67. A Simple Moving Average of the same five closes would be their plain average, 12.0, so the WMA sits at 12.67, noticeably closer to the newest price of 14. That gap is the front-weighting in action: because price is rising, the WMA leans toward the latest bar and will cross above a lagging Simple Moving Average sooner, giving an earlier, if slightly noisier, read that the uptrend is underway.