200-Day SMA Regime Filter on EEM
iShares MSCI Emerging Markets ETF: emerging-market equities, on a different cycle than US indexes. Backtest 2021-01-04 to 2026-10-02, $10,000 starting capital, computed by the same engine that runs live DeployQuant strategies.
This rule buys a fund once yesterday's close is above its 200-day average and goes to cash when the close falls below it. On the iShares MSCI Emerging Markets ETF (EEM) it earned 7.76% a year between 2021-01-04 and 2026-10-02, ending at $15,361.73 from $10,000. The maximum drawdown was 17.74% and the Sharpe ratio 0.6. Buy-and-hold on EEM earned 6.58% a year, ended at $14,416.30, and had a 39.09% drawdown.
Its CAGR lead was 1.18 points and its worst drawdown was 21.35 points shallower. It did so almost entirely by staying out of the fund through 2021 and 2022: the strategy made no trade until 2023-01-05, and its returns for 2021 and 2022 are both 0%, against -4.2% and -20.2% for buy-and-hold.
The standard trade statistics on this page look poor. The win rate was 27% on 15 closed round trips, the profit factor 0.76 and the average win 3.54% against an average loss of 1.58%. These count closed trades only. A 16th position, bought on 2025-04-25 at 42, was still open on the last day and was up 61.14%. That one position carries most of the return, and the closed trades alone lost money.
The rule ranked 5th of 12 on EEM, and EEM ranked 19th of 59 funds for this rule. The median CAGR across all 59 funds was 1.84%, which puts EEM above the typical result for this template. The 200-day regime filter hub lists every fund and the EEM page ranks the 12 templates on this fund. The headline run decides daily, fills on minute bars, uses no margin and charges no fees or slippage.
Year by year
| Year | 200-day regime filter | buy & hold |
|---|---|---|
| 2021 | 0.0% | −4.2% |
| 2022 | 0.0% | −20.2% |
| 2023 | −2.8% | 8.9% |
| 2024 | 3.1% | 6.2% |
| 2025 | 23.7% | 33.1% |
| 2026 | 24.0% | 23.9% |
Two years in cash, then a late start
Nothing happened in 2021 or 2022. EEM sat under its 200-day average for most of both years and the rule held cash. Its return was 0% in both years while buy-and-hold lost 4.2% and 20.2%. The gaps in favour of the rule were 4.2 and 20.2 points, and the second one is the reason the rule beat the fund over the whole window.
The fund's own record shows why the exit mattered. EEM peaked on 2021-02-17 and fell 39.82% by 2022-10-24, on the fund's profile, and did not recover until 2025-09-15, a drawdown of 1,148 sessions. Calendar returns for the fund were -4.3% in 2021 and -20.64% in 2022. A rule that was already in cash avoided both.
The cost of that caution came after. The fund returned 8.9% in 2023 and the rule lost 2.8%, a gap of -11.7 points. The first entry was 2023-01-05 at 36.04, and the trades that year were short and mostly losers: 8 round trips with 2 wins. The price crossed the 200-day line repeatedly without a clear trend, which is the whipsaw the strategy page names as its caveat.
2024 returned 3.1% against 6.2%, a gap of -3.1 points. The one good trade of the early record came in 2024, from 2024-02-02 to 2024-12-19, held 321 days for +12.34%. 2025 returned 23.7% against 33.1%, a gap of -9.4 points, because the rule exited on 2025-04-04 after a -3.66% trade and did not re-enter until 2025-04-25. 2026 so far shows 24% against 23.9%, so the two are level.
Calendar-year scorecard: ahead in 2021, 2022 and 2026, behind in 2023, 2024 and 2025. The lead from 2022 outweighs the three smaller shortfalls. The result depends on that one year.
Month by month
| Year | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2021 | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% |
| 2022 | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% |
| 2023 | 5.9% | −6.7% | 0.2% | −0.7% | −2.4% | 1.0% | 5.9% | −7.3% | −1.1% | 0.0% | −0.3% | 3.7% |
| 2024 | −8.0% | 4.1% | 2.7% | −0.2% | 1.9% | 2.6% | 0.8% | 0.9% | 5.7% | −2.9% | −2.6% | −1.1% |
| 2025 | −0.9% | 1.0% | 1.0% | −4.0% | 3.9% | 7.0% | 0.7% | 2.6% | 6.9% | 3.5% | −1.7% | 2.1% |
| 2026 | 7.9% | 5.7% | −9.1% | 12.4% | 7.2% | 0.3% | −6.2% | 4.4% | −0.3% | 1.3% | – | – |
Twenty-four zero months, then a mixed record
Every month from January 2021 to December 2022 shows 0, which is 24 months in cash. The record starts in January 2023 at +5.88%. The next month, February 2023, lost 6.73%, and August 2023 lost 7.34%. That pairing is the 2023 whipsaw in monthly form.
January 2024 lost 7.95% and February 2024 made +4.11%, starting the long trade that ran until December. March 2024 made +2.71%, May +1.94%, June +2.57% and September +5.65%. The long trade lost in October (-2.93%), November (-2.65%) and December (-1.14%) before the exit on 2024-12-19.
2025 is mostly positive after April. April lost 4%, then May made +3.85%, June +6.97%, July +0.71%, August +2.58%, September +6.93% and October +3.53%. November lost 1.69% and December made +2.09%. These are months in the open position that is still held at the end of the window.
The two largest months of the record bracket the same event. March 2026 lost 9.09%, the worst month, and April 2026 made +12.37%, the best. For the fund itself, the best month was November 2022 (+14.98%) and the worst September 2022 (-11.16%). The rule sat in cash for both. July 2026 lost 6.2% and May 2026 made +7.23%.
By month of year the fund averaged +2.96% in November, +2.92% in January, +2.18% in May and +1.7% in June, and negative in March, July, September and October. Each of those averages rests on 5 or 6 calendar months, so they describe only this window.
Every trade
200-day regime filter on EEM made 15 closed round trips and one position still open at the end of the test, an average hold of 46 days, an average winner of 3.54%, an average loser of −1.58%, a profit factor of 0.76, a longest losing streak of 4. It held a position at the close on 57.4% of trading days.
| Entry | Entry price | Exit | Exit price | Return | Days held |
|---|---|---|---|---|---|
| 2023-01-05 | $36.04 | 2023-02-27 | $35.58 | −1.3% | 53 |
| 2023-03-02 | $35.92 | 2023-03-10 | $35.12 | −2.2% | 8 |
| 2023-03-24 | $35.55 | 2023-04-26 | $35.73 | 0.5% | 33 |
| 2023-04-27 | $35.73 | 2023-06-01 | $35.36 | −1.0% | 35 |
| 2023-06-02 | $36.53 | 2023-08-17 | $36.34 | −0.5% | 76 |
| 2023-08-29 | $36.65 | 2023-09-01 | $37.01 | 1.0% | 3 |
| 2023-09-05 | $36.71 | 2023-09-07 | $36.01 | −1.9% | 2 |
| 2023-09-15 | $36.56 | 2023-09-18 | $36.29 | −0.7% | 3 |
| 2023-11-15 | $36.95 | 2024-01-17 | $35.59 | −3.7% | 63 |
| 2024-01-25 | $36.93 | 2024-02-01 | $36.67 | −0.7% | 7 |
| 2024-02-02 | $36.64 | 2024-12-19 | $41.16 | 12.3% | 321 |
| 2024-12-23 | $41.10 | 2024-12-31 | $40.79 | −0.8% | 8 |
| 2025-01-22 | $41.35 | 2025-01-28 | $41.01 | −0.8% | 6 |
| 2025-01-29 | $41.53 | 2025-02-04 | $41.67 | 0.3% | 6 |
| 2025-02-05 | $41.76 | 2025-04-04 | $40.23 | −3.7% | 58 |
| 2025-04-25 | $42.00 | open | – | 61.1% | – |
Prices are adjusted for splits and dividends, so they sit below the quotes printed at the time. An open position is marked at the last close.
Sixteen positions: fifteen closed and one that makes the result
Fifteen of the positions closed and one is open. The median closed trade lost 0.75% and held 8 days. The longest hold was 321 days and the shortest 2. The best run of consecutive winners was 1; the worst run of losers was 4.
The early record is a run of small outcomes near the starting price of about 36. The first, 2023-01-05 to 2023-02-27, returned -1.28% over 53 days. Then came -2.23% in 8 days, +0.51% in 33 days, -1.04% in 35 days and -0.52% in 76 days. In late August and September 2023 there were three trades of 3, 2 and 3 days returning +0.98%, -1.91% and -0.74%. The 63-day trade from 2023-11-15 to 2024-01-17, from 36.95 to 35.59, lost 3.68%, the worst closed trade.
The one large closed winner was 2024-02-02 to 2024-12-19, from 36.64 to 41.16, for +12.34% over 321 days, the best closed trade. Everything else was between -3.68% and +0.98%. Late 2024 and early 2025 brought a -0.75% trade, a -0.82% trade, a +0.34% trade and a -3.66% trade from 2025-02-05 to 2025-04-04, from 41.76 to 40.23.
The open position was bought on 2025-04-25 at 42 and is up 61.14%. It has been held through the whole of the 2025 and 2026 advance and through the March 2026 and July 2026 pullbacks without an exit. That single trade is why the CAGR is positive and the profit factor looks poor: the profit factor of 0.76 counts only the closed trades.
By exit year the record was 8 round trips with 2 wins in 2023, 4 with 1 win in 2024 and 3 with 1 win in 2025. Entry and exit prices here are adjusted ones, so they read lower than the quotes of the day.
Chains of re-entries around 36 and 41
The closed trades cluster at two price levels, and the chain of entries and exits at each shows the whipsaw in detail. In September 2023 the rule sold on 2023-09-01 at 37.01 for a 0.98% gain, bought again on 2023-09-05 at 36.71, sold on 2023-09-07 at 36.01 and bought on 2023-09-15 at 36.56. It sold three sessions later on 2023-09-18 at 36.29. Each exit was followed within days by a new entry at a similar price, so the round trips mostly paid the difference between a sell price and a slightly different buy price.
The same thing happened at 41. After the long trade sold on 2024-12-19 at 41.16, the rule bought on 2024-12-23 at 41.1 and sold on 2024-12-31 at 40.79. It bought on 2025-01-22 at 41.35, sold on 2025-01-28 at 41.01, bought on 2025-01-29 at 41.53 and sold on 2025-02-04 at 41.67. The next day, 2025-02-05, it bought at 41.76. That last entry became the -3.66% trade that ended on 2025-04-04 at 40.23. Four entries in about six weeks produced three losses and one gain of 0.34%.
The pair on 2024-01-25 and 2024-02-02 is similar. The rule sold on 2024-02-01 at 36.67 after a 0.7% loss and bought back on 2024-02-02 at 36.64, one session later and three cents lower. That second entry is the 321-day trade that made 12.34%. The rule cannot tell a false breakdown from a real one at the time, so the false ones are part of the cost of holding the 321-day trade.
Largest drawdowns
| Peak | Low point | Depth | Days to low | Recovered | Days to recover |
|---|---|---|---|---|---|
| 2023-01-26 | 2024-01-31 | −17.7% | 370 | 2024-09-26 | 239 |
| 2026-06-22 | 2026-07-29 | −14.0% | 37 | not yet | – |
| 2026-02-25 | 2026-03-30 | −13.3% | 33 | 2026-04-17 | 18 |
Buy-and-hold's deepest drawdown ran from 2021-02-17 to 2022-10-24 and reached −39.1%.
Drawdowns: 17.74% in 2023, and two recent ones
The deepest drawdown of the strategy was 17.74%, from a peak on 2023-01-26 to a trough on 2024-01-31, 370 days later, with recovery on 2024-09-26, 239 days after that. It is the whipsaw drawdown: eight small trades in 2023 and a -3.68% trade into January 2024.
The other two are recent. From 2026-06-22 to 2026-07-29 the equity fell 14.03% and was still under water on the final day. From 2026-02-25 to 2026-03-30 it fell 13.3% and recovered on 2026-04-17, 18 days after the trough. Buy-and-hold had almost the same figures for those two, 14.01% and 13.29%, because the rule was fully invested in both. The 200-day filter did not exit in either decline. A rule that waits for yesterday's close to drop below a slow average reacts late to a fall of that size.
Against that, buy-and-hold fell 39.09% from 2021-02-17 to 2022-10-24 and only got back to its peak on 2025-09-15, 1,057 days after the trough. The rule's cash position through that period is the difference in the drawdown column.
The Sharpe ratio of 0.6 compares with 0.44 for buy-and-hold. The cash months in 2021 and 2022 add no volatility, which helps the figure for the strategy.
With trading costs
The headline run fills at the bar price. These runs charge slippage on every fill.
| Slippage per fill | CAGR | Max drawdown | Final value | Sharpe |
|---|---|---|---|---|
| None (headline) | 7.8% | −17.7% | $15,362 | 0.60 |
| 5 basis points | 7.5% | −18.5% | $15,115 | 0.58 |
| 10 basis points | 7.2% | −19.2% | $14,898 | 0.56 |
Costs: small, with 31 fills
The headline run has 31 fills. At 5 basis points the CAGR was 7.46% against 7.76%, the drawdown was 18.48% and the ending equity $15,115.05. At 10 basis points the CAGR was 7.19%, the drawdown 19.19% and the ending equity $14,897.76. The Sharpe ratio went from 0.6 to 0.582 and 0.564.
Even at 10 basis points the strategy finished above buy-and-hold's $14,416.30, and its CAGR of 7.19% stayed over 6.58%. The margin is thin. EEM is liquid, with an average daily dollar volume of $1,332,500,625 and a median minute volume of 38,144 shares, so the cost runs are a fair test of the rule.
Changing the parameters
| Version | CAGR | Max drawdown | Round trips | Win rate | Final value |
|---|---|---|---|---|---|
| Published rules | 7.8% | −17.7% | 15 | 27% | $15,362 |
| 100-day SMA | 5.6% | −17.3% | 38 | 42% | $13,651 |
| 150-day SMA | 4.6% | −17.4% | 27 | 41% | $12,926 |
| 250-day SMA | 5.8% | −18.7% | 14 | 14% | $13,796 |
Other lookbacks: 200 days was the best of five
Three other lookback windows were run. A 100-day average returned 5.57% with a 17.34% drawdown, 38 trades and 16 wins, ending at $13,650.96. A 150-day average returned 4.57% with a 17.38% drawdown, 27 trades and 11 wins, ending at $12,925.81. A 250-day average returned 5.77% with an 18.74% drawdown, 14 trades and 2 wins, ending at $13,796.03.
All three variants earned less than the 200-day base case at 7.76%, and all three held the drawdown near 17% to 19%, about the same as the base case at 17.74%. The 100-day and 150-day averages made more trades, 38 and 27, and made no better result. The 250-day average made 14 trades, one fewer than the base case at 15, and earned 5.77%.
The result of the 200-day window is the best of the four but it is not a stable peak. The CAGR moves from 4.57% at 150 days to 7.76% at 200 days and 5.77% at 250 days, and no smooth curve connects those points. The differences come from the dates of a handful of crossings.
The drawdowns were close in all four, which shows what the filter does here: it keeps the rule out of the 2021 to 2022 decline, and any length between 100 and 250 days does that.
How EEM behaved
| Measure | EEM |
|---|---|
| Data in this test | 2021-01-04 to 2026-10-02 (1444 sessions) |
| Total return, buy and hold | 46.9% |
| Annualized volatility | 19.9% |
| Deepest drawdown | −39.8% (2021-02-17 to 2022-10-24) |
| Up days | 52.0% |
| Average daily range | 1.04% |
| Average overnight gap | 0.75% |
| Correlation to SPY | 0.67 |
| Correlation to QQQ | 0.69 |
| Correlation to TLT | 0.09 |
| Sessions above the 200-day average | 66.7% |
| Crossings of the 200-day average | 31 |
| Falls of 10% or more from a 20-day high | 14 |
How EEM behaved
EEM holds emerging-market equities. Over the window it returned 46.91% in total, a CAGR of 6.93%, with annualized volatility of 19.86%. Its beta to SPY was 0.81, with a correlation of 0.67, so it moves with US markets, though not tightly. The fund's correlation with QQQ was 0.69.
The fund finished above its 200-day line on 66.67% of sessions and crossed the line 31 times. The remaining third of sessions below it came mostly in 2021 and 2022, and the crossings were frequent enough to cause the clusters of short trades.
Day to day it was symmetrical. Up days made up 51.98% of sessions, and they averaged +0.92% against -0.93% for down days. Typical intraday range was 1.04% and the typical overnight gap 0.75%. The best day was +8.12% on 2022-03-16 and the worst -6.52% on 2026-06-05. The split of returns is lopsided: overnight log return was -7.75% and intraday log return +45.12%, so intraday moves account for 120.76% of the total and overnight moves for -20.76%. The fund made all of its gain during the US session in this window.
There were 27 sessions with RSI(14) under 30, and the median 5-day forward return of 2.94% against a baseline of 0.21%, and a 20-day median of 3.65% against 0.54%. Oversold readings on EEM were followed by strong gains. RSI(2) under 10 occurred on 163 sessions, followed by a 5-day median of 0.4% and a 20-day median of 1.2%. This fits the ranking: RSI mean reversion was second of 12 on EEM at 9.51%.
Drops of 10% from a 20-day high happened in 14 episodes, covering 34 days in total.
Which extreme days the rule held through
EEM's five best days were 2022-03-16 at 8.12%, 2025-04-09 at 6.91%, 2026-04-08 at 5.47%, 2026-06-11 at 4.42% and 2022-11-04 at 4.21%. The rule was in cash for the two 2022 days. It was also in cash on 2025-04-09, the day after the 2025-04-08 low, because the sale on 2025-04-04 was not followed by a purchase until 2025-04-25 at 42. That gap is the main reason 2025 ended 9.4 points behind buy-and-hold for the year, 23.7% against 33.1%. The two 2026 best days fell inside the open position.
The five worst days were 2026-06-05 at -6.52%, 2026-06-23 at -5.65%, 2025-04-04 at -5.53%, 2026-03-03 at -4.91% and 2022-10-24 at -3.89%. Three of them fell in June and March 2026 inside the open position, the period of the 13.3% drawdown that ended on 2026-04-17 and the 14.03% drawdown that began on 2026-06-22. The 2025-04-04 loss coincides with the exit date of the -3.66% trade, and the 2022-10-24 loss was the day of the fund's own trough, when the rule held cash.
By weekday the fund averaged 0.04% on Monday, 0.03% on Tuesday, 0.12% on Wednesday, 0.01% on Thursday and -0.02% on Friday. The lag-1 autocorrelation was -0.07, slightly negative, so a daily decline was a little more likely to be followed by a rise. That mild reversal fits the whipsaw record above: a decision rule built on a slow average keeps seeing small moves against it. EEM's least correlated fund was EEV at -0.98, its inverse, and its most correlated was QAI at 0.81, with SOXX, QQQE and SOXL at 0.71.
The rules
Own the asset when price closes above its 200-day average; hold cash when it closes below.
- WHEN the market opens · IF not invested AND yesterday's close > SMA(200) · THEN buy with 98% of the sleeve
- WHEN the market opens · IF invested AND yesterday's close < SMA(200) · THEN sell the whole position
One rule and one number. Price above the 200-day moving average has historically coincided with better returns and lower volatility than price below it. This template uses no crossovers and no oscillators, only which side of the long-term average the price is on.
Good for: a first systematic strategy, simple enough to audit every trade.
Watch out: price whips around the 200-day line during volatile bottoms, generating clusters of buy-sell pairs. Some traders add a small buffer band to reduce churn.
How the other templates ranked on EEM and on other broad funds
Ranked by CAGR on EEM, the 200-day filter sat fifth of 12. The golden cross matched it at 7.76%, with a 20.65% drawdown. Ahead of both were the weekly 7% target at 11.62% (27.4% drawdown), RSI mean reversion at 9.51% (14.01%) and the trend plus trailing stop at 8.85% (16.33%).
Behind it were the dip buyer at 7.14%, the RSI(2) snapback at 3.87%, and the monthly cycle at 3.14%, which also carried a 44.39% drawdown. The momentum breakout made 2.36%. The EMA 12/26 made 0.29%. The 3-month momentum lost 1.62%, and the SMA 10/50 lost 3.89% with a 41.17% drawdown.
Slow trend templates came out ahead on this fund, and the faster crossovers came out behind. Three of them, the 200-day filter, the golden cross and the trend plus trailing stop, kept drawdowns under 21%. The SMA 10/50 and EMA 12/26 kept flipping because EEM crossed its averages so often.
The same 200-day rule on the other broad index funds gives context. QQQM made 13.02% and QQQ 12.9%. IOO made 11.2% and VOOG 11.06%. In the middle, VOO made 8.41%, SPY 8.3% and VV 7.86%, with EEM at 7.76% just under them. QQQE made 5.65%, IWM 4.67%, VOOV 4.31% and VTV 4.26%. The group median was 8.3%. Round trips ranged from 10 on QQQ and QQQM to 22 on VOOV.
The test covers one window of 5.74 years. Most of the edge over holding EEM comes from 2022, and the open +61.14% position carries most of the return. A fall that began without a prior rise above the average would produce a different result.
Build it from blocks (or type it in English), backtest it on 5.7 years of minute data in seconds, tweak any parameter, then paper trade it on live data. No card, no broker needed to start.
Frequently asked questions
Did 200-day regime filter beat buy-and-hold on EEM?
Over 2021-01-04 to 2026-10-02, 200-day regime filter on EEM returned 7.8% annualized vs 6.6% for buy-and-hold: it beat buy-and-hold by 1.2% per year, with a maximum drawdown 21.4 points shallower than holding (17.7% vs 39.1%).
How many trades did it make?
15 completed round trips over 5.7 years (31 fills), with 27% of round trips closing profitably.
Why the 200-day average specifically?
It approximates a year of trading days and has been studied across decades of data. It is not the best window for every asset. The per-ETF backtests here show where it helped and where it didn't.
How did the 200-day filter perform on EEM over the window?
Annual return was 7.76% between 2021-01-04 and 2026-10-02, taking $10,000 to $15,361.73. Maximum drawdown was 17.74% and Sharpe 0.6. Holding EEM instead earned 6.58% with a 39.09% drawdown.
Why is the win rate only 27% if the CAGR is positive?
The win rate and profit factor count the 15 closed round trips, and 4 of them won. A 16th position, bought on 2025-04-25 at 42, is still open and up 61.14%. It carries most of the return.
Why were 2021 and 2022 both 0%?
EEM was below its 200-day average through most of that period, so the rule held cash and made no trade until 2023-01-05. Buy-and-hold lost 4.2% in 2021 and 20.2% in 2022.
Did the rule avoid the 2026 drawdowns?
No. It was fully invested, so it fell 13.3% from 2026-02-25 to 2026-03-30 and 14.03% from 2026-06-22 to 2026-07-29. Buy-and-hold fell 13.29% and 14.01% over the same dates.
Does a different moving-average length work better?
Not on this window. The 100-day average returned 5.57%, the 150-day 4.57% and the 250-day 5.77%, all below the 200-day result of 7.76%.
How much do trading costs matter here?
Very little. Across 31 fills, 5 basis points lowered the CAGR to 7.46% and 10 basis points to 7.19%. The strategy still finished above buy-and-hold at the higher cost.
What was the worst year for the rule against the fund?
2023, when the rule lost 2.8% and EEM gained 8.9%. The rule made 8 round trips that year and won 2 of them.
Related
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.