# Moving average: SMA, EMA and the 200-day rule

> What a moving average is, SMA vs EMA with a 5-day example, the 200-day average, golden and death crosses, and dated backtests of classic rules.

Written by [Tactfolio research team](https://tactfolio.com/about/editorial-policy.md), published 2026-10-16, updated 2026-10-16, data as of 2026-09-25.

A moving average is the average closing price of a stock or fund over the last set number of days. Each day the newest price comes in and the oldest drops out. It smooths out daily noise so the trend is easier to see. The 200-day moving average is one of the most watched. Many traders read a price above it as a sign of an uptrend.

## Key points

- A **simple moving average** (SMA) gives every day the same weight.
- An **exponential moving average** (EMA) gives recent days more weight, so it reacts faster.
- A **golden cross** is when the 50-day average rises above the 200-day. A **death cross** is the reverse.
- Moving average rules usually lag at turns. They sell after a fall starts and buy after a rise starts.
- In backtests, classic moving average rules cut the worst falls but usually returned less than holding the S&P 500.

## Simple vs exponential moving average

The two differ in how they weight the days. Here is a 5-day example with round numbers.

Say a fund closed at $10, $11, $12, $13 and $14 over five days.

- **5-day SMA** = ($10 + $11 + $12 + $13 + $14) ÷ 5 = $60 ÷ 5 = **$12**

Now the next day it closes at $18. The $10 drops out and $18 comes in.

- **New 5-day SMA** = ($11 + $12 + $13 + $14 + $18) ÷ 5 = $68 ÷ 5 = **$13.60**

An EMA instead moves part of the way toward each new price. For 5 days, it moves one third of the way (2 ÷ (5 + 1)). Starting from $12:

- **New 5-day EMA** = $12 + ($18 − $12) × 1/3 = **$14**

The EMA jumped to $14 while the SMA reached $13.60. Faster reactions catch turns sooner, but they also mean more false alarms.

## What is the 200-day moving average?

The 200-day moving average is the average close over the last 200 trading days, a little under 10 months. Jeremy Siegel wrote about using it to time the stock market in [Stocks for the Long Run](https://www.mhprofessional.com/stocks-for-the-long-run-9781264282197-usa) (first edition 1994).

The [200-day moving average strategy](https://tactfolio.com/strategies/200-day-moving-average.md) on Tactfolio holds the S&P 500 while it closes above its 200-day average and Treasury bills while it is below. As of September 25, 2026, its hypothetical backtest from mid-2007 returned about 8% a year, against about 11% for the S&P 500. Its worst fall was about 22%, against 55%. It lost 10% in 2011 while the market gained 2%, as prices crossed the average again and again.

Mebane Faber tested a monthly version in [A Quantitative Approach to Tactical Asset Allocation](https://papers.ssrn.com/sol3/papers.cfm?abstract_id=962461) (SSRN, 2007). The [Faber 10-month moving average](https://tactfolio.com/strategies/faber-10-month-moving-average.md) checks only at each month end. As of September 25, 2026, its hypothetical backtest since 2007 returned about 8% a year. It cut the S&P 500's worst fall by more than half. It still lost about 2% in 2010, while the S&P 500 gained 15%.

## Moving average crossover: golden cross and death cross

A moving average crossover is when a faster average crosses a slower one. A widely used pair is the 50-day and 200-day.

- **Golden cross:** the 50-day average rises above the 200-day. Traders read it as the start of an uptrend.
- **Death cross:** the 50-day falls below the 200-day. Traders read it as the start of a downtrend.

The [golden cross strategy](https://tactfolio.com/strategies/golden-cross.md) holds the S&P 500 after a golden cross and Treasury bills after a death cross. As of September 25, 2026, its hypothetical backtest from mid-2007 returned about 9% a year, against about 11% for the S&P 500. It gained about 2% in 2008, when the S&P 500 lost 37%. But the 2020 crash was over too fast for the averages to cross. It took the whole 34% fall, then bought back late and ended 2020 down about 5%.

## Common mistakes

- **Expecting it to catch tops and bottoms.** A moving average lags by design.
- **Checking daily in a sideways market.** Prices crossing back and forth cause many small losses, called whipsaws.
- **Tuning the length to the past.** A 187-day average that tested best is likely fitting noise.
- **Adding leverage without care.** Some rules hold [leveraged ETFs](https://tactfolio.com/learn/leveraged-etfs.md) above the average. These funds reset daily. Held for longer, their returns can differ a lot from the multiple in their name.

## Try it on Tactfolio

You can open any of the three classics above, read every rule and see each year of its backtest. To test your own version, open the [strategy builder](https://tactfolio.com/builder) and add an If / Else block with a moving average or exponential moving average. You can pick any length, use month-end closes, or add a band, such as price above 1.05 × the average. Strategies on US stocks and ETFs run on daily prices and hold long positions only.

## Common questions

### Which moving average is best?

No length is best for every market. The 200-day and 10-month averages are the most common choices for long-term trends. Shorter averages react faster but whipsaw more.

### Is the 200-day moving average a good indicator?

It is one of the most widely watched trend signals. In backtests on the S&P 500, rules built on it cut the worst falls but usually returned less than buy and hold. In those tests it helped more with risk than with return.

### What is the difference between SMA and EMA?

An SMA weights every day equally. An EMA gives more weight to recent days, so it turns sooner after a price change. Neither is better in every case.

### How do moving averages compare with RSI?

A moving average tracks the direction of the trend. The [RSI indicator](https://tactfolio.com/learn/rsi-indicator.md) tracks how lopsided recent gains and losses have been. Our guide to the [best indicators for trading](https://tactfolio.com/learn/best-indicators-for-trading.md) compares both, and [trend following](https://tactfolio.com/learn/trend-following.md) shows how moving average rules fit into a wider method.

## Put it into practice

- [Trend following bot](https://tactfolio.com/bots/trend-following-bot.md): A trend following bot that holds SPY above its 10-month moving average and Treasury bills below.
- [Backtesting](https://tactfolio.com/backtesting.md): Free backtesting software for stocks, ETFs, and crypto perps.
- [SPY: State Street SPDR S&P 500 ETF Trust](https://tactfolio.com/etf/spy.md): What SPY holds, its 0.0945% yearly fee, returns by year, its worst drop, and which Tactfolio strategies hold it.

## Sources

- [Stocks for the Long Run](https://www.mhprofessional.com/stocks-for-the-long-run-9781264282197-usa), Jeremy J. Siegel, McGraw Hill (1994, 6th edition 2022), accessed 2026-10-16
- [A Quantitative Approach to Tactical Asset Allocation](https://papers.ssrn.com/sol3/papers.cfm?abstract_id=962461), Mebane Faber, SSRN, 2007 (updated 2013), accessed 2026-10-16
- [200-Day Moving Average Strategy](https://tactfolio.com/strategies/200-day-moving-average), Tactfolio, figures as of September 25, 2026, accessed 2026-10-16
- [Golden Cross Strategy](https://tactfolio.com/strategies/golden-cross), Tactfolio, figures as of September 25, 2026, accessed 2026-10-16
- [Faber's 10-month moving average timing model](https://tactfolio.com/strategies/faber-10-month-moving-average), Tactfolio, figures as of September 25, 2026, accessed 2026-10-16
- [Builder reference](https://tactfolio.com/docs/builder), Tactfolio docs, accessed 2026-10-16
