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

Exponential Moving Average (EMA) Explained

This guide explains what the EMA is, how it is calculated and added in MetaTrader, how to read it, and where it misleads.

Extrade Pakistan editorial team ·

On this page
  1. What is EMA?
  2. EMA vs SMA
  3. Formula
  4. How to add the EMA in MT4 and MT5
  5. How to read the EMA
  6. Choosing parameters
  7. Where the EMA misleads
  8. Risk and the EMA
  9. Frequently asked questions

What is EMA?

A moving average is a line that shows the average price over a set number of recent candles. The period is the number of candles used. The exponential moving average (EMA) is a moving average that gives more weight to recent prices and less to older ones. Because of this, it turns faster than a simple average when price changes direction.

The EMA does not predict price. It summarises what price has already done. It is a lagging indicator: it always reacts after the move has started.

EMA 20SMA 20
Exponential moving average (EMA) 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.

EMA vs SMA

Point SMA EMA
Weighting Every candle in the period counts equally Recent candles count more
Reaction to new prices Slower Faster
Old data Drops out completely when it leaves the period Fades gradually and never fully disappears
Noise Smoother More sensitive to sharp spikes

The SMA moves in steps as old candles leave the window, which can make it jump when a large old candle drops out. The EMA avoids that effect, but a single strong recent candle pulls it harder. The WMA sits between the two. It weights recent prices more, but in a straight-line way rather than an exponential one.

Formula

Each new EMA value is the previous EMA plus a fraction of the gap between the new price and that previous EMA:

EMA now = EMA previous + k × (Price now − EMA previous)

How to add the EMA in MT4 and MT5

The steps below follow the standard MetaTrader menus. Your build may look slightly different.

  1. Open a chart in MetaTrader 4 or MetaTrader 5.
  2. Go to Insert → Indicators → Trend → Moving Average. You can also drag "Moving Average" from the Navigator onto the chart.
  3. Set MA method to Exponential. The default method is Simple, so check this field.
  4. Choose the Period, the Apply to price (usually Close) and, if needed, a Shift. Shift moves the line forward on the chart. Leave it at zero unless you have a reason to change it.
  5. Pick a colour and style, then confirm.

You can add several EMAs with different periods to the same chart. Practising on a demo account lets you test settings without real money.

How to read the EMA

The drawn example below uses no real prices:

Common ways traders use the line:

Choosing parameters

There is no correct period. The choice is a trade-off:

Where the EMA misleads

Risk and the EMA

An EMA is a description of past prices, not a trading system. Leveraged forex and CFD trading can lose money fast, including when every indicator seems to agree. Decide your position size and stop placement first. See risk management and the wider technical analysis section.

Frequently asked questions

What is EMA in simple words?

It is an average of recent prices that gives more weight to the latest candles. Because of that weighting, it follows price more closely than a simple average.

Is the EMA better than the SMA?

Neither is better. The EMA reacts faster and is noisier. The SMA is smoother and slower. Which one suits you depends on your timeframe and method.

Which EMA period should I use?

There is no standard answer. Shorter periods react faster and give more false turns. Longer periods filter noise but lag. Test your settings on a demo account before using them with real money.

Why does my EMA differ from another platform's?

The difference usually comes from the applied price, the amount of loaded history, or how the platform seeds the starting value.

Does an EMA strategy work on its own?

An EMA cannot identify ranges, news risk or position size. Traders usually combine it with price structure and strict risk limits. It offers no guarantee of results.

Related pages