Indicators

Moving Averages: SMA vs EMA and How to Use Them

The simplest indicator there is, and the most useful, provided you treat it as a trend filter rather than a signal generator.

A moving average is the average closing price over the last N periods, recalculated each time a new bar closes. It is the simplest indicator in common use and, treated correctly, the most useful.

Its job is to answer one question quickly and objectively: which way is this going? Everything else people try to do with it works less well.

SMA and EMA

A simple moving average adds the last N closes and divides by N. Every period in the window counts equally, and the price leaving the window has as much effect on today’s value as the price entering it.

An exponential moving average weights recent prices more heavily, decaying the influence of older ones. It therefore turns sooner.

SMA EMA
Weighting Equal across the window Recent prices weighted more
Reaction Slower Faster
Whipsaws Fewer More
Common use Longer-term structure (50, 200) Shorter-term timing (9, 21)

Neither is superior. The EMA gives you earlier signals and more false ones, in the same trade-off that governs every smoothing decision in technical analysis.

The periods that matter, and why

The 20, 50 and 200 are the most watched averages in the market, and that popularity is much of the reason they work.

Enough institutions and traders reference the 200-day that real orders cluster around it. When a widely followed stock approaches its 200-day average, buyers genuinely appear there. The level is partly self-reinforcing, and that is a legitimate mechanism rather than a flaw.

Choosing an unusual period, say a 37-day average because it backtested well, gives up that effect entirely while adding a strong risk of curve-fitting.

Golden cross and death cross

The golden cross is the 50-day crossing above the 200-day; the death cross is the reverse. Both get substantial financial media coverage.

Both are also heavily lagging by construction. For a 50-day average to cross above a 200-day one, price must already have risen enough, for long enough, to drag it there. The cross confirms a trend that has been underway for months.

That does not make them useless. As a regime marker, telling you this market has been in an uptrend long enough to move the long averages, the information is real. As a timing signal it is close to worthless, and the popular presentation as a buy signal is the misleading part.

How moving averages fail

The first failure is in ranges. In sideways markets price crosses the average constantly, producing continuous contradictory signals. Moving-average crossover systems bleed money in ranges, and ranges are common.

The second is sharp reversals. An average that lags by design will be well above price after a crash. It cannot help you with a fast reversal, because its whole mechanism is smoothing.

The third is gaps. An overnight gap through the average happens in an instant. The line offers no protection; it is a drawing, not an order.

Three practical uses

  1. Trend filter. Above the 200-day, consider longs only. Below, shorts or cash. One rule, applied consistently.
  2. Pullback entries. In an established uptrend, a retracement to a rising 20 or 50 EMA that has already been respected twice is a workable entry zone. Two prior touches is the filter that makes this meaningful.
  3. Trailing stops. Exiting when price closes below a rising average keeps you in a trend without needing to predict its end.

Note that none of these is a crossover signal. Read MACD next, since it is built entirely from moving averages, and pair any setup with proper position sizing.

Frequently asked questions

What is a moving average?

The average closing price over a set number of periods, recalculated as each new bar closes. A 50-day moving average is the average of the last 50 closes. Plotted as a line, it smooths out day-to-day noise so the underlying direction is easier to see.

What is the difference between SMA and EMA?

A simple moving average weights every period in the window equally. An exponential moving average weights recent periods more heavily, so it responds faster to new prices. EMAs turn sooner, which means earlier signals and more false ones. Neither is better; they trade responsiveness against stability.

What is a golden cross?

When the 50-day moving average crosses above the 200-day. It is widely reported as bullish, but it is a lagging confirmation: by the time it happens, price has already risen enough to pull a 50-day average above a 200-day one. The death cross is the mirror, with the 50 crossing below the 200.

Which moving average periods should I use?

The 20, 50 and 200 are the most watched, which is much of why they work: enough participants place orders around them that they attract real flow. The 9 and 21 EMAs are common for shorter-term trading. Inventing an unusual period gives up the self-reinforcing effect without gaining anything.

Do moving averages work?

As trend filters, yes. Asking whether price is above or below its 200-day average is a fast, objective way to establish direction, and restricting trades to that direction removes a great many bad ones. As entry signals, crossovers perform poorly because they arrive late and whipsaw in ranges.