Weighted Moving Average (WMA)

WMA
Indicator

TrendOn the price chartFree on ChartLabs

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.

Example market1hIndicatorsAtlas AIWMAchartlabs.co/charts
Atlas reads it

Price is under a falling WMA 9. Short-term trend points down.

WMA 9 65,982.1 · Close 65,242.2

Atlas reads it

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.

1Bullish

Price above a rising WMA

Closes stay above the line while it slopes up. The short-term trend is up.

2Bearish lean

Close crosses below

After a run above the line, price closes under it. Short-term momentum is turning down.

3Bullish lean

Close crosses above

After a run below, price closes above the line. Many traders want the WMA to turn up as well.

4Bullish

Pullback that holds

Price dips to a rising WMA and closes back above it.

Flat line, many crosses
5Inconclusive

Flat line, many crosses

The WMA goes sideways and price crosses it back and forth. There is no trend.

WMA formulaHow it is calculated.

WMAt=N×closet+(N−1)×closet−1+…+1×closet−N+1N(N+1)/2
STEP 1

Collect the window

Take the last 9 closes, including the current bar.

STEP 2

Weight them

Multiply the newest by 9, the next by 8 and so on down to 1 for the oldest.

STEP 3

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.

SettingDefaultRangeWhat it changes
Length91 to 10,000 (typical 9 to 200)How many closes are weighted. Longer is smoother and slower.
SourceCloseAny price, or volumeWhich values feed the calculation.
LineBlue #2962FF, 1 pxAny colour and widthColour 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.
930 price crosses in view
70,20866,82563,44360,06164,803.7

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

WhileWMAslopes upifprice dips to it and closes above

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

IfWMA 9crosses aboveWMA 21exit whenit crosses back

Two averages cut out some of the noise of price crossing one line. The 21 is drawn here in orange.

Trend filter

Only long whileprice is aboveWMAandWMArises

A longer WMA keeps you on the side of the bigger trend while other tools time the entry.

Test a rule in the Strategy TesterFree with 1 year of history. Past results do not guarantee future results.

WMA mistakesCommon mistakes.

Flat line, many crosses

Trading every cross in a range

A flat WMA gets crossed constantly. Check the slope before treating a cross as a signal.

Cross comes after the low

Expecting it to catch the turn

The WMA lags less than an SMA, but the cross still comes after the low.

Far above the line

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 indicators

Try WMA on a live chart.
Free. No download.

Works in your browser and on iPhone too.

Example market1h
WMA (9, close)