WMA
Indicator
The WMA averages the last N closes with weights that rise in a straight line toward the newest bar. It reacts faster than an SMA and stops at a fixed window.
A classic of technical analysis. Reviewed by the ChartLabs team, updated Nov 2026.
Price is under a falling WMA 9. Short-term trend points down.
WMA 9 65,982.1 · Close 65,242.2
Price is under a falling WMA 9. Short-term trend points down.
WMA 9 65,982.1 · Close 65,242.2
Illustration on simulated data.
Weighted Moving Average (WMA)What is the WMA indicator?
The WMA draws one blue line on the price chart. By default it averages the last 9 closes.
Each close in the window gets a weight by its position: the newest close counts 9 times, the one before 8 times, down to 1 for the oldest. The weighted total is divided by the sum of the weights, 45 for a length of 9.
Recent prices drive the line, so it turns sooner than an SMA of the same length. Unlike an EMA, it has a hard edge: once a close is more than 9 bars old it has no effect at all.
WMA, SMA or EMA?
The SMA weights every bar the same. The EMA fades old bars out gradually but never fully. The WMA fades them in a straight line and drops them after N bars.
A building block
The Hull Moving Average is made of three WMAs. Several other averages use weighted steps in the same way.
WMA signalsFive patterns to know.
Price above a rising WMA
Closes stay above the line while it slopes up. The short-term trend is up.
Close crosses below
After a run above the line, price closes under it. Short-term momentum is turning down.
Close crosses above
After a run below, price closes above the line. Many traders want the WMA to turn up as well.
Pullback that holds
Price dips to a rising WMA and closes back above it.
Flat line, many crosses
The WMA goes sideways and price crosses it back and forth. There is no trend.
WMA formulaHow it is calculated.
Collect the window
Take the last 9 closes, including the current bar.
Weight them
Multiply the newest by 9, the next by 8 and so on down to 1 for the oldest.
Divide by the weights
Add up the weighted closes and divide by 45, the sum of 1 to 9. No value is drawn until 9 closes exist.
WMA settingsEvery setting, explained.
| Setting | Default | Range | What it changes |
|---|---|---|---|
| Length | 9 | 1 to 10,000 (typical 9 to 200) | How many closes are weighted. Longer is smoother and slower. |
| Source | Close | Any price, or volume | Which values feed the calculation. |
| Line | Blue #2962FF, 1 px | Any colour and width | Colour and width of the line. |
- Setting
- Length
- Default
- 9
- Range
- 1 to 10,000 (typical 9 to 200)
- What it changes
- How many closes are weighted. Longer is smoother and slower.
- Setting
- Source
- Default
- Close
- Range
- Any price, or volume
- What it changes
- Which values feed the calculation.
- Setting
- Line
- Default
- Blue #2962FF, 1 px
- Range
- Any colour and width
- What it changes
- Colour and width of the line.
Drag to see how the setting changes the lines and how many signals you get. Illustration on simulated data.
WMA strategiesUse it in 3 setups.
Pullback to a rising WMA
A rising WMA often acts as a pullback area. Traders usually wait for the close back above rather than the first touch.
Fast WMA crosses a slower one
Two averages cut out some of the noise of price crossing one line. The 21 is drawn here in orange.
Trend filter
A longer WMA keeps you on the side of the bigger trend while other tools time the entry.
WMA mistakesCommon mistakes.
Trading every cross in a range
A flat WMA gets crossed constantly. Check the slope before treating a cross as a signal.
Expecting it to catch the turn
The WMA lags less than an SMA, but the cross still comes after the low.
Chasing far above the line
When price runs far above the WMA, it often drifts back toward it before the trend resumes.
WMA combinationsPair it with these.
WMA FAQQuestions traders ask.
What are the default WMA settings?
Length 9 on the close, the same as TradingView.
How is the WMA weighted?
Linearly. With length 9, the newest close counts 9 times and the oldest once, and the total is divided by 45.
WMA or EMA?
Both favour recent prices. The EMA keeps a small trace of every past bar; the WMA ignores anything older than N bars.
WMA or SMA?
The SMA counts every close equally, so it is smoother but slower. The WMA reacts sooner to the latest prices.
What is the best WMA length?
9 is the default. 20, 50 and 200 are common on daily charts, as with other averages.
Does the WMA work on crypto?
Yes. It works on any market with prices.
Is the WMA leading or lagging?
Lagging. It is an average of past closes, though it turns sooner than an SMA of the same length.
Does the WMA repaint?
No. Values on closed bars never change. The live bar moves until it closes.
Why is there no line at the start of the chart?
The WMA needs a full window. With length 9, the first value appears on the ninth bar.
Can I use the WMA on another indicator?
Not yet. The Source can be any price (open, high, low, close, HL2, HLC3, OHLC4) or volume, but not another indicator's line.
Related indicatorsMore trend tools.
All trend indicatorsTry WMA on a live chart.
Free. No download.
Works in your browser and on iPhone too.