Moving averages: SMA vs EMA, and how to use them

A moving average is the average price of the last few candles, updated with every new candle. It smooths out daily noise to show the direction of the trend, and it is the most basic and most widely used tool in technical analysis.

Simple moving average (SMA)

The arithmetic mean of the last N closes: SMA = (C₁ + C₂ + … + Cₙ) / N. Every candle carries the same weight.

Example: if the last five closes are 10, 11, 12, 13 and 14, the 5-day SMA = 60 / 5 = 12. If the next close jumps to 20, the oldest value (10) drops out and the new SMA = (11 + 12 + 13 + 14 + 20) / 5 = 14.0.

Exponential moving average (EMA)

The EMA gives more weight to recent prices: with α = 2 / (N + 1), EMA = EMAprevious + α × (Close − EMAprevious).

Same example: for a 5-day EMA, α = 2 / 6 = 1/3. With a previous EMA of 12 and a close of 20, the new EMA = 12 + (20 − 12) / 3 = 14.67. To the same jump the SMA responds with 14.0 and the EMA with 14.67: the EMA moves toward the new price faster.

SMA or EMA?

SMAEMA
Speed of reactionSlowerFaster
False signalsFewerMore
Best suited toLong-term trend, support and resistanceShort-term trading, catching turns early

Neither is simply “better”. Long-term investors tend to prefer the SMA, short-term traders the EMA.

Which periods are used?

How to read moving averages

Limitations

Moving averages are calculated from past prices, so they always lag; they show a trend once it has started. In sideways markets with no clear direction, price keeps crossing the average back and forth and produces many false signals. They work better alongside a momentum indicator such as the RSI and the company's financials.

Moving averages in Gonofin

This guide is for information only and is not investment advice. No indicator guarantees future price movements.

Last updated:

CONTACT

Write to us.

Send us your question, feedback or partnership idea and we’ll reply by email.