Exponential moving average
The exponential moving average gives the newest closes the most weight, so it turns sooner than a simple average of the same length.
- Level 3 Reading Charts
- Lektion 27 von 31
- 4 Min. Lesezeit
- 2 Fragen
An exponential moving average, or EMA, is a moving average that gives more weight to recent closes than to older ones. It reacts faster to a change in price than a simple moving average of the same period. Each new value is a blend of the latest close and the previous value of the EMA.
The formula
multiplier = 2 ÷ (period + 1)
EMA = close × multiplier + previous EMA × (1 − multiplier)
| Period | Multiplier | Weight of the latest close |
|---|---|---|
| 5 | 0.3333 | 33.3% |
| 10 | 0.1818 | 18.2% |
| 20 | 0.0952 | 9.5% |
| 50 | 0.0392 | 3.9% |
| 200 | 0.0100 | 1.0% |
A worked example
Take the closes from the last lesson. An EMA needs a starting value, and the usual choice is the simple average of the first closes: 1.09652 on the fifth candle. The sixth close is 1.0954.
EMA = 1.0954 × 0.3333 + 1.09652 × 0.6667 = 1.09615
| Candle | Close | 5-period SMA | 5-period EMA |
|---|---|---|---|
| 5 | 1.0950 | 1.09652 | 1.09652 |
| 6 | 1.0954 | 1.09608 | 1.09615 |
| 7 | 1.0942 | 1.09556 | 1.09550 |
On the seventh candle the close fell 12 pips. The EMA dropped 6.5 pips and the SMA 5.2. The EMA moved further because a third of it is the newest close.
Where the weight goes
A 5-period SMA gives 20% to each of the last five closes and nothing to anything older. A 5-period EMA gives 33.3% to the latest close, then 22.2%, 14.8%, 9.9% and 6.6% to the four before it. The remaining 13.2% is spread over all the older closes.
An old close never leaves an EMA completely. Its weight shrinks with every new candle. For that reason an EMA has no sudden jump when an extreme close ages out of the window, which a simple average does.
Differences between platforms
Platforms do not all start an EMA in the same way, and they load different amounts of history. On a chart with few candles, two platforms can show slightly different values for the same EMA. With plenty of history loaded, several times the period, the difference fades to nothing that matters.
Key points
- An EMA gives recent closes more weight. Its multiplier is 2 ÷ (period + 1).
- EMA = close × multiplier + previous EMA × (1 − multiplier).
- In a 5-period EMA the latest close has 33.3% of the weight, and 13.2% rests on closes more than five periods old.
- An EMA reacts sooner than an SMA and never drops a close completely.
Kurzer Check
Diese Fragen zählen nicht für deine Quiz-Punktzahl.
Common mistakes
- Thinking a 10-period EMA looks at only ten closes. Every earlier close still has a small weight.
- Comparing EMA values on a chart with little history. The starting value has not yet faded, so the numbers are unreliable.
- Assuming that faster is better. A faster average follows the price more closely, including the moves that do not last.
Another example
A 9-period EMA has a multiplier of 2 ÷ 10, which is 0.2. Suppose the EMA on GBP/USD stood at 1.2700 yesterday and today’s close is 1.2760, a gap of 60 pips. The new EMA is 1.2760 × 0.2 + 1.2700 × 0.8, which is 1.2712. It has closed one fifth of the gap, 12 pips. If tomorrow also closes at 1.2760, the EMA moves a fifth of the remaining 48 pips and reaches 1.2722.
Questions people ask
How do you calculate an exponential moving average?
Work out the multiplier, which is 2 divided by the period plus 1. Multiply the latest close by it, multiply yesterday’s EMA by 1 minus the multiplier, and add the two. The first value is usually taken as the simple average of the first closes.
Why does my EMA differ from another platform’s?
The two platforms have probably started the calculation in different places. An EMA depends on its starting value and on how much history is loaded, and the effect of the start takes many candles to fade. Different closing times for daily candles add a further small difference.
Does an EMA ever forget old prices?
Not entirely. Each close keeps some weight for ever, but the weight shrinks by a fixed proportion with every new candle. In a 5-period EMA, closes more than five periods old share about 13% of the weight, and closes more than ten periods old share under 2%.
What is the difference between an EMA and a weighted moving average?
Both give recent closes more weight. A weighted moving average uses a fixed window, with weights that step down evenly from the newest close to the oldest and then stop. An EMA lets the weights fall away by a constant proportion and never cuts them off.
Die Lektionen sind ohne Konto kostenlos lesbar. Melde dich an und PipCircle merkt sich, wo du aufgehört hast, speichert deine Quiz-Ergebnisse und vergibt deine Abzeichen. Kostenlos anmelden
Trading foreign exchange and CFDs carries a high risk of losing money. PipCircle Learn is education and is not investment advice.