An EMA (exponential moving average) gives more weight to recent closes. For the same period, it reacts faster than an SMA, which gives the same weight to all its closes.
Calculation: set a coefficient α = 2 / (N + 1), then at each bar: new EMA = old EMA + α × (close − old EMA). With N = 19, α = 0.1. EMA at 100 and close at 110: 100 + 0.1 × 10 = 101.
Reading it: in a turn, the EMA turns first and stays closer to price. After a sudden jump from 100 to 110, the 10 EMA already covers 18% of the way on the first bar, the 10 SMA only 10%. The SMA catches up with price in exactly 10 bars; the EMA gets closer and closer without ever reaching it exactly.
In a trading plan, the EMA suits decisions that must react quickly (short-term tracking, exits), the SMA suits slow, widely watched references such as the 200 SMA. Choose one before testing, then stick with it.
Pitfalls: more responsiveness also means more false signals; the first values depend on where the calculation starts, so you need a warm-up history; and the EMA is not “better” in itself, just different.
Examples
EXPO-X (fictional market) : The green curve is the EMA 20 and the golden one the SMA 20. In the price’s turns, the green one turns first: that is the effect of the larger weight given to the latest bars.
Why 2 / (N + 1)? : This coefficient is not arbitrary: with α = 2 / (N + 1), the average age of an EMA’s data is (N − 1) / 2 bars, exactly as for an SMA of the same period. Both averages share the same “centre”, but the EMA puts more weight on the very latest bars.
Key terms
EMA
Moving average that weights recent prices more
Coefficient α
Weight of the last close in the EMA, equal to 2 / (N + 1)