CFDs and forex are complex instruments and come with a high risk of losing money rapidly due to leverage. Risk disclosure

Weighted Moving Average (WMA)

This guide explains what a WMA is, how it is calculated and set up in MetaTrader, and where it helps or misleads on a chart.

Extrade Pakistan editorial team ·

On this page
  1. What is WMA
  2. The formula: linear weights
  3. Adding the WMA in MT4 and MT5
  4. Reading the WMA: a drawn example
  5. Typical uses
  6. Parameter choices for experienced traders
  7. Where the WMA misleads
  8. Frequent questions

What is WMA

A weighted moving average (WMA) is a line on the chart that shows the average price over a chosen number of bars. It gives the newest bars more importance than the older ones.

A simple moving average treats every bar in the period equally. A WMA does not. It reacts faster to recent price changes and still smooths out some of the noise.

WMA 20SMA 20
Weighted moving average (WMA) compared with a simple average of the same period (dashed): it reacts faster to new prices. Illustrative example: made-up numbers for learning, not real prices or a broker's conditions.

The formula: linear weights

The WMA uses linear weighting. The weights fall in a straight line from the newest bar to the oldest.

The EMA works differently. It weights bars exponentially and never fully drops old data. The WMA ignores everything outside its window. Inside the window, the oldest bars still count for less.

Adding the WMA in MT4 and MT5

MetaTrader has no separate WMA indicator. You use the standard Moving Average and change its method.

  1. Open a chart in MetaTrader 4 or MetaTrader 5.
  2. Go to Insert → Indicators → Trend → Moving Average.
  3. Set MA method to Linear Weighted.
  4. Choose the period and Apply to (usually Close).
  5. Pick a colour and click OK.

You can practise on a demo account before you use the line on a live chart.

Reading the WMA: a drawn example

The sketch below is drawn by hand and shows no real prices. * is price and - is the WMA.

Typical uses

Parameter choices for experienced traders

There is no correct period. Test settings on historical data and on a demo, and treat any result as specific to that sample.

Where the WMA misleads

Leveraged forex and CFD trading can lose money fast. No moving average removes that risk. See risk management.

Frequent questions

What is WMA in trading?

It is a moving average that gives linearly larger weights to newer bars. This makes it more responsive than an SMA.

Is WMA better than EMA?

Neither is better in general. They weight data differently and suit different testing results and preferences.

What period should I use for the WMA indicator?

There is no standard answer. Shorter periods react faster and give more noise. Longer periods are smoother and lag more.

Does the WMA repaint?

It does not change the values of closed bars. The value on the current bar moves until that bar closes.

Can the WMA alone tell me when to trade?

No. It describes past prices. Combine it with other technical analysis and strict risk control.

Related pages