EMA vs. SMA: which moving average should you use?
How a simple and an exponential moving average are calculated, why the EMA reacts faster, what that costs in false moves, and how to choose a length for your timeframe.
A moving average smooths price into one line by averaging the last so many candles. It is one of the oldest tools in charting, and nearly every platform offers two main kinds: the simple moving average (SMA) and the exponential moving average (EMA). They look similar on a chart, but they weigh the past differently, and that changes how quickly they react.
How the SMA is calculated
The SMA adds up the closing prices of the last N candles and divides by N. Every candle in the window counts the same. When a new candle closes, the oldest one drops out and the average moves.
SMA = (close 1 + close 2 + ... + close N) / N
How the EMA is different
The EMA gives more weight to recent candles and less to older ones. Each new close pulls the average toward it by a fixed share, and old prices fade out gradually instead of dropping off all at once. For a 20-period EMA that share is about 9.5% per candle; for a 10-period EMA it is about 18%.
EMA today = EMA yesterday + k x (close - EMA yesterday), with k = 2 / (N + 1)
The result: after a sharp move, the EMA turns sooner and stays closer to price. The SMA turns later, and it can jump when a big old candle leaves the window, even if nothing happened today.
Speed has a price
Reacting faster sounds better, but there is a trade-off. A line that follows price closely also follows the noise. In a choppy, sideways market the EMA crosses price back and forth more often, so rules based on it trigger more false starts. The SMA is slower to confirm a new trend, but it gets shaken less by random wiggles.
- EMA
- Turns sooner after a real move. More false crossings in sideways markets.
- SMA
- Steadier line, fewer false crossings. Later to confirm a real move.
Neither is more accurate. They answer slightly different questions: the EMA asks where price has been lately, the SMA asks where it has been on average over the whole window. A practical consequence: if you trade fast pullbacks on a short timeframe, the EMA tends to sit closer to where price turns; if you only want a broad trend filter, the steadier SMA is usually enough.
Choosing a length
The length (N) matters far more than the type. A 9-period EMA and a 9-period SMA are close cousins; a 9-period and a 200-period average describe completely different things. Some common choices:
- Short (9 to 21 periods): follows the swings of the timeframe you trade; used for pullback entries and trailing exits.
- Medium (50 periods): a rough guide to the intermediate trend.
- Long (100 to 200 periods): the big picture. The 200-day average is watched by many traders across markets, which is partly why price sometimes reacts near it.
Popular lengths work partly because many people watch them. There is nothing special about the number 20 or 50 itself, and testing lengths until one fits past data perfectly usually produces a setting that fails on new data.
Common ways traders use moving averages
- Trend filter: only look for long trades when price is above a rising long average, and short trades when below a falling one.
- Dynamic zone: in a steady trend, watch for pullbacks toward a short or medium average as possible entry areas.
- Crossovers: a faster average crossing a slower one marks a change in short-term direction; on its own it lags and produces many false starts in ranges.
- Trailing exit: close a trend trade when price closes on the other side of a chosen average.
Mistakes to avoid
- Stacking five or six averages until the chart becomes a tangle that can justify any trade.
- Treating the line as an exact wall. Price often overshoots an average before turning, so think in zones.
- Switching between EMA and SMA trade by trade, depending on which one fits the idea you already had.
- Using a moving average strategy in a sideways market without any filter for whether a trend exists.
Key takeaways
- The SMA weighs every candle in the window equally; the EMA weighs recent candles more.
- The EMA turns sooner after real moves and also crosses more often in sideways markets.
- The length of the average changes its meaning far more than its type.
- Moving averages describe the past; use them as a filter or a zone, not as exact walls.
Related guides
Practice it, without risking money.
The OREX Academy lesson on moving averages lets you compare fast and slow lines on chart examples, and the strategy tester can run a moving average rule on past data so you can see how often it gives false starts.
The OREX Academy turns topics like this one into short lessons with interactive charts, quizzes and drills in a practice simulator with $10,000 of virtual money. Your AI coach answers questions about them any time.
Start the 5-day free trial Card required for the trial; cancel online before it ends and you pay nothing. Education only, not financial advice.
OREX