Learn › Glossary › SMA (Simple Moving Average)

SMA (Simple Moving Average)

The arithmetic average of the last N closing prices, recalculated each bar. Moving averages smooth noise so the underlying trend is visible; price above a rising SMA is the simplest definition of an uptrend. Common windows are 20, 50, and 200 days. Crossovers of two SMAs — a fast one crossing a slow one — are among the oldest systematic trading signals.

A simple moving average, or SMA, is the arithmetic average of the last N closing prices, recalculated on every bar. A 200-day SMA averages the last 200 daily closes and moves forward one day at a time, dropping the oldest close and adding the newest. The result is a smoother line than the price itself, and the longer the window, the smoother and slower the line. Common windows are 20, 50 and 200 days.

Traders use an SMA in two main ways. The first is to ask which side of the line the price is on. Price above a rising SMA is the simplest definition of an uptrend. The second is to compare two SMAs of different lengths. A fast one crossing above a slow one is a long-standing entry signal, and a cross back below is the exit. Both uses appear in the strategy templates tested on this site. The 200-day regime filter holds a fund while its price is above the 200-day SMA. The golden cross holds while the 50-day SMA is above the 200-day SMA. The SMA 10/50 trend holds while the 10-day SMA is above the 50-day SMA.

The measured results on this site give the SMA a plain scorecard. The 200-day regime filter was run on 59 ETFs from 2021-01-04 to 2026-10-02. Its median CAGR was 1.84%, its median maximum drawdown was 22.16% and its median Sharpe ratio was 0.36. It made a median of 18 round trips and was invested a median of 57.8% of the time. It had a positive CAGR on 37 of 59 funds, a shallower maximum drawdown than buy-and-hold on 50 of 59, and a higher CAGR than buy-and-hold on 26 of 59.

That last pair of numbers describes what an SMA filter does. It cuts drawdowns on most funds and gives up return on most funds. The rest of this entry explains how the line is built, why it lags, how the window length changed results in the tests, and what six well-known funds looked like against their own 200-day average. The EMA is the main alternative, and the moving average crossover and golden cross entries cover the two-line versions.

Every result here is a hypothetical backtest on one window of 5.74 years, with daily decisions, no margin, and no fees or slippage in the headline runs.

200-Day SMA Regime Filter across 59 ETFs

Median CAGR 1.8%, median max drawdown −22.2%, ahead of buy-and-hold on 26 of 59 (2021-01-04 to 2026-10-02).

ETFCAGRBuy & holdMax DDRound trips
TQQQ24.9%25.4%−36.5%14
SOXL23.4%33.3%−76.7%22
QLD21.6%23.6%−28.8%12
CLSE20.4%19.5%−8.7%8
SOXX19.2%31.1%−39.2%19
VIXM−12.2%−16.1%−53.6%30
REW−13.0%−36.1%−61.3%19
TECS−13.9%−46.7%−62.4%17
SOXS−19.7%−48.3%−72.5%14
UVXY−29.8%−48.7%−86.9%12

The five strongest and five weakest results. All 59.

What the 200-day SMA filter did across 59 funds

The rule behind the 200-day regime filter is one line. If the fund is not held and yesterday's close is above the 200-day SMA, buy with 98% of the account at the open. If the fund is held and yesterday's close is below the 200-day SMA, sell the whole position. There is no stop, no target and no second indicator. Every trade can be audited by looking at one number.

Across all 59 funds the median CAGR was 1.84% and the median maximum drawdown was 22.16%. The filter beat buy-and-hold on return for 26 of the 59 funds and held a shallower drawdown on 50. The two numbers fit together. A fund that is out of the market when its price sits below the 200-day line will miss part of every decline and part of every rebound, and in this window the declines were shorter than the rallies on most funds.

The split by fund type is the most useful part of the table. On the 12 broad index funds the filter's median CAGR was 8.3% against 14.42% for buy-and-hold, with a median maximum drawdown of 19.82%, and it beat buy-and-hold on 1 of 12. On the 6 sector funds it made 6.52% against 12.58% and beat buy-and-hold on none. On the 10 leveraged funds it made 12.4% against 23.55% with a median drawdown of 42.2%, and it beat buy-and-hold on 2. The filter lagged in every group of funds that rose.

The groups that fell show the opposite. On the 11 inverse funds the filter's median CAGR was -7.53% against -21.57% for buy-and-hold, and it beat buy-and-hold on 10 of 11. On the 3 volatility products the median was -12.16% against -16.06%, and it won all 3. On the 7 bond funds it made 0.37% against -0.78% and won 6. On the 3 currency funds it made 1.29% against -0.9% and won 2. The one commodity fund, with a median of 12.98% against 13.66%, was a narrow loss. The 6 alternative-strategy funds made 1.84% against 7.61% and the filter won 2 of them.

By year, the median fund returned 0% under the filter in 2021 against 4.1% for buy-and-hold, because many funds had no entry signal early in the window. In 2022 the filter's median was -12.4% against -12.7%, a small edge in the one bad year. In 2023 it was 2.8% against 8.9%, in 2024 1.5% against 9.7%, in 2025 4.3% against 11.1%, and in 2026 so far 1.5% against 3.7%. The number of funds with a positive year under the filter was 25 in 2021, 7 in 2022, 30 in 2023, 34 in 2024, 34 in 2025 and 30 in 2026. The cost of a filter is paid in years that rise, and its benefit is collected in the years that fall, and the benefit in 2022 was small at the median.

How the average is calculated and why it lags

Add the last N closes and divide by N. Each day the window moves forward by one bar. The oldest close leaves and the newest enters, so every close in the window carries the same weight of one part in N. That equal weighting is the meaning of the word simple. An exponential average, by contrast, weights recent closes more heavily, which is why an EMA reacts faster than an SMA of the same length.

The lag follows from the equal weights. A 200-day SMA is an average of the last 200 closes, so it is centered on the price from roughly 100 days ago. When a fund turns, the average turns later, and the price has to travel some distance through the average before a rule built on it can react. That is the cost of smoothing. The longer the window, the fewer false signals, and the later the true ones.

A second effect is that the average needs history before it exists. A 200-day SMA cannot be computed until 200 closes are available. For a fund with a shorter record this delays the first trade. The 200-day filter on CLSE is an example of a fund whose record is shorter than the others, so its first signal came late.

The third effect is on the signal itself. A rule that compares the price with its SMA flips whenever the price crosses the line. A fund that hovers near the line crosses it again and again, and each cross is a buy or a sell. This is why the strategy's own caveat describes clusters of buy-sell pairs around volatile bottoms. Some traders add a small buffer band around the line to reduce that churn.

Two-line versions behave differently. A fast SMA crossing a slow SMA reacts to a change in the trend of the averages rather than to a single price crossing, so it signals less often and later. The moving average crossover entry describes the pair lengths. Per its definition, 10/50 catches multi-week swings with frequent whipsaws and 50/200 catches multi-year regimes with heavy lag.

What changing the window did in the tests

The 200-day window is a convention. The tests ran three other lengths of the same rule on the same 59 funds, and the median results were close to each other.

The 100-day SMA had a median CAGR of 1.66%, a median maximum drawdown of 24.34% and a median of 30 round trips. The 150-day SMA had a median CAGR of 1.36%, a median drawdown of 24.79% and 24 round trips. The 250-day SMA had a median CAGR of 1.61%, a median drawdown of 24.64% and 16 round trips. The 200-day default had a median CAGR of 1.84%, a median drawdown of 22.16% and 18 round trips.

Two things stand out. First, a shorter window made more trades and a longer window made fewer, as expected. The trade count fell from 30 at 100 days to 24 at 150 days and 16 at 250 days. Second, the default had the highest median CAGR and the shallowest median drawdown of the four. The gaps between the four are small, so none of this is a strong case that 200 days is the right length. It says that the choice of window did not change the median result by much across 59 funds.

On a single fund the window can matter more. The page for the 200-day filter on CLSE shows all four windows on one fund, and a difference of a few points between windows there reflects a handful of entries and exits, so single-fund results should be read with that in mind.

The golden cross and the SMA 10/50 trend show what happens when two SMAs are used instead of one. The golden cross had a median CAGR of 2.05%, a median drawdown of 21.84% and a median of 3 round trips, and it beat buy-and-hold on 27 of 59 funds. The SMA 10/50 trend had a median CAGR of 2.12%, a median drawdown of 23.02% and 17 round trips, and it beat buy-and-hold on 21. The 200-day regime filter had 1.84%, 22.16% and 18, and beat buy-and-hold on 26. All three SMA-based rules sit within a fraction of a point of each other at the median, even though their trade counts differ by a factor of several. For comparison, the EMA 12/26 trend had a median CAGR of 2.76% with 22 round trips.

Six funds measured against their own 200-day average

The fund profiles record how often each fund closed above its 200-day average and how often it crossed the line. The numbers show why an SMA rule behaves so differently from fund to fund.

SPY closed above its 200-day average on 77.99% of its 1,444 sessions and crossed it 30 times. Its maximum drawdown was -24.51%, from 2022-01-03 to 2022-10-12. A fund that spends most of its time above the line gives a filter little reason to leave, and the filter leaves only for the long declines. The SPY page has the full profile.

QQQ was above its 200-day average on 75.18% of sessions and crossed it 20 times. Its maximum drawdown was -35%. The fewer crossings mean fewer false signals. TQQQ, the 3x fund on the same index, was above the line on 69.48% of sessions and crossed it 28 times. On TQQQ the 200-day filter made 24.95% against 25.35% for buy-and-hold, with a maximum drawdown of 36.54% against 80.77% for buy-and-hold, from 14 round trips with a win rate of 43% and 59.8% exposure. That is the best case in the data for the filter: nearly the same return as holding, with less than half the drawdown. The TQQQ page has the trades.

IWM, the small-cap fund, was above its 200-day average on 63.29% of sessions and crossed it 34 times. That is more crossings than SPY or QQQ and a lower share above the line, and IWM was the fund where the slower crossover rules had trouble. TLT, the long Treasury fund, was above its 200-day average on only 35.18% of sessions and crossed it 95 times, the most of the six. Its price fell 40.49% in total over the window, and the long drawdown of 44.06% had not recovered by the end. A filter on a fund that crosses its average 95 times in 5.74 years will trade often, and each cross is a small bet.

UVXY, the leveraged volatility product, was above its 200-day average on 4.18% of sessions and crossed it 24 times. It lost 99.94% of its value over the window. A 200-day filter on UVXY was invested only 3.6% of the time, made 12 round trips and lost 29.78% a year against 48.74% for buy-and-hold, with a maximum drawdown of 86.86%. The filter lost less because it was in the fund so little. It still lost money.

The six profiles say that the 200-day average gives different information on different funds. On SPY it marks rare breaks in a long uptrend. On TLT and UVXY it marks a price that sits below the line most of the time and pops above it on spikes.

Where the 200-day filter worked best and worst

The strongest results by CAGR were on the leveraged and growth funds. The filter made 24.95% on TQQQ, 23.44% on SOXL, 21.57% on QLD, 20.38% on CLSE, 19.21% on SOXX and 17.99% on ROM. Only CLSE beat its buy-and-hold CAGR of 19.49%, by 0.89 points, with a maximum drawdown of 8.7%. The others trailed buy-and-hold by 0.4 points on TQQQ, 9.88 on SOXL, 1.98 on QLD, 11.9 on SOXX and 12.2 on ROM. The filter's best results in absolute terms came from funds that did well on their own.

The weakest results were on volatility and inverse funds. The filter lost 11.42% on VXZ, 12.16% on VIXM, 12.99% on REW, 13.86% on TECS, 19.74% on SOXS and 29.78% on UVXY. The gaps to buy-and-hold on these were positive: 3.68 points on VXZ, 3.9 on VIXM, 23.13 on REW, 32.81 on TECS, 28.53 on SOXS and 18.96 on UVXY. The filter lost less than holding on each of them and still lost money.

The win rates on those funds were low, between 0% and 26%, since an SMA filter on a falling fund buys the occasional bounce above the line and sells it again. Exposure was between 3.6% and 27%. The filter's value there was that it was mostly absent.

The 200-day filter on SOXS and the filter on REW are two examples of a tool that protected capital on a fund that was a poor holding, and a reader looking for a rule that makes money should note that the protection was relative. A smaller loss is still a loss.

How SMA rules compare with the other templates

The twelve templates in the test fall into groups, and the SMA-based ones sit in the middle on return and toward the lower-drawdown end on risk.

Among all twelve, the weekly 7% target had the highest median CAGR at 6.61%, followed by the monthly cycle at 5.46%, the RSI(2) snapback at 4.74% and the RSI mean reversion at 2.98%. The EMA 12/26 trend had 2.76% and the trend plus trailing stop 2.61%. The SMA 10/50 trend had 2.12%, the golden cross 2.05% and the 200-day regime filter 1.84%. The dip buyer had 1.33%, and the momentum breakout and the 3-month momentum rule each had 0%.

On drawdown, the RSI(2) snapback had the lowest median at 17.47%, and the momentum breakout had 20.1%. The golden cross had 21.84% and the 200-day filter 22.16%, with the EMA 12/26 trend at 22.87% and the SMA 10/50 trend at 23.02%. The monthly cycle had the highest at 36.63%, since it holds almost all the time.

On beating buy-and-hold, the RSI(2) snapback and the weekly 7% target each beat it on 34 of 59 funds. The golden cross beat it on 27, the 200-day regime filter on 26, the RSI mean reversion on 25, the EMA 12/26 trend and the dip buyer on 22 each, the SMA 10/50 trend and the momentum breakout on 21 each, and the trend plus trailing stop and 3-month momentum on 20 each. The monthly cycle beat it on 14.

The round-trip counts show the effort behind each result. The golden cross made a median of 3 round trips. The 200-day filter made 18, the SMA 10/50 trend 17 and the EMA 12/26 trend 22. The RSI(2) snapback made 166 and the weekly 7% target 106. The SMA rules get a similar median result from far fewer trades than the short-term rules, which matters when fees and slippage are added. The RSI(2) snapback and the weekly profit target page cover the high-turnover end. The first systematic strategy answer covers how to choose among these for a beginner.

What these results do not show

The tests cover one window of 5.74 years that includes a sharp decline in 2022, a recovery, and a fast fall and rebound in April 2025. A window with a long sideways market or a decline that lasted several years would give a different picture. The rules run once a day at the open, use 98% of the account, hold one fund at a time and ignore fees and slippage in the headline runs. The cost runs on the strategy pages add 5 and 10 basis points per trade.

An SMA is a description of the past. It says what the average close was over the last N days and tells you nothing by itself about the next day. The median results above show that a rule built on it cut drawdowns on 50 of 59 funds and gave up return on most of them. Those are measured facts about this window. They are not a forecast.

The figures for individual funds depend on a few trades. The 200-day filter made 14 round trips on TQQQ, and the result there rests on a few long holds. Single-fund pages describe what happened and carry the usual limits of a small sample.

A reader who wants to test an SMA rule on a different fund, a different window length or with a buffer band around the line can build it in DeployQuant from blocks, in plain English or in Python, and backtest it on minute data. The rules on this site were all run on the same engine and the same data, so the results can be compared across funds and templates.

Frequently asked questions

What does SMA stand for?

SMA stands for simple moving average. It is the arithmetic average of the last N closing prices, recalculated each bar. A 200-day SMA averages the last 200 daily closes.

What is the difference between an SMA and an EMA?

An SMA weights every close in its window equally. An EMA weights recent closes more heavily, so it reacts faster than an SMA of the same length. The faster reaction brings more signals and more whipsaws in choppy markets.

How did a 200-day SMA filter perform in the tests?

Across 59 ETFs from 2021-01-04 to 2026-10-02 the median CAGR was 1.84% and the median maximum drawdown was 22.16%. The filter had a shallower drawdown than buy-and-hold on 50 funds and a higher CAGR on 26.

Is a 200-day window better than 100, 150 or 250 days?

The medians were close. The 100-day SMA made 1.66%, the 150-day made 1.36%, the 250-day made 1.61% and the 200-day made 1.84%. The default had the shallowest median drawdown at 22.16%. The gaps are small.

What is the golden cross in terms of SMAs?

It is the 50-day SMA crossing above the 200-day SMA. The golden cross template holds while the 50-day is above the 200-day. Across 59 funds it had a median CAGR of 2.05% and a median of 3 round trips.

Why does an SMA lag the price?

Each close in the window has equal weight, so the average is centered on the price from about half a window ago. A 200-day SMA turns later than the price does. The lag is the cost of smoothing and is larger for longer windows.

See it in action: 200-Day SMA Regime Filter →

Backtested on 59 ETFs over 5.7 years with real engine results and a buy-and-hold comparison on every page.

Related terms

EMA (Exponential Moving Average)A moving average that weights recent prices more heavily, using an exp…Golden CrossThe moment a 50-day moving average crosses above a 200-day moving aver…Moving Average CrossoverA signal generated when a faster moving average crosses a slower one —…

Backtests are hypothetical, computed by DeployQuant's engine on minute-resolution consolidated US market data (2021-01-04 to 2026-10-02, $10,000 starting capital, no margin, no fees or slippage in the headline run; buy-and-hold puts 98% of the account in at the first open, as the templates do) and do not guarantee future results. Nothing on this page is investment advice. Live trading involves risk of loss.