200-Day SMA Regime Filter on IWM
iShares Russell 2000 ETF: US small caps, with higher beta and choppier trends than the S&P 500. Backtest 2021-01-04 to 2026-10-02, $10,000 starting capital, computed by the same engine that runs live DeployQuant strategies.
The 200-day regime filter holds IWM when yesterday's close was above the 200-day average and holds cash when it was below. IWM is the iShares Russell 2000 ETF, a basket of US small caps. From 2021-01-04 to 2026-10-02 the filter turned $10,000 into $12,998.92. That is a CAGR of 4.67%, a total return of 29.99% and a Sharpe ratio of 0.40. Buy-and-hold on IWM ended at $15,145.24, a CAGR of 7.5% with a Sharpe ratio of 0.46.
The filter gave up return and bought a shallower drawdown. Its maximum drawdown was 22.16%, against 31.34% for holding. It beat holding in 2022 only, the year IWM fell, and tied it in 2024. In the other four years it trailed.
The record is made of two kinds of trades. A cluster of short trades through late 2021 and 2022 lost small amounts again and again, and a few long trades did the earning. The best of them held IWM for 452 days and made 22.8%. The filter made 17 closed round trips, won 7 of them for a win rate of 41%, and had one position open at the end. The average winner was 5.45% and the average loser was -2.04%, a profit factor of 1.83. The edge came from letting winners run and cutting losers fast.
Against the other 11 templates on IWM the filter ranks 4. Across 59 funds this rule ranks 22 on IWM. For the broad index group its median CAGR was 8.3%, so small caps were below the group's typical result.
Year by year
| Year | 200-day regime filter | buy & hold |
|---|---|---|
| 2021 | −1.4% | 15.7% |
| 2022 | −10.7% | −20.1% |
| 2023 | 8.6% | 16.4% |
| 2024 | 11.1% | 11.1% |
| 2025 | 9.4% | 12.4% |
| 2026 | 11.8% | 14.9% |
Year by year
The first line of the year table needs context. The template made -1.4% in 2021 while buy-and-hold made 15.7%. The first entry was on 2021-10-19. A 200-day average needs 200 sessions of history, and that date falls about 200 sessions after the start of the window on 2021-01-04, which fits a warm-up period. For the first nine months of 2021 the account sat in cash, and the 17.1 point gap in that year reflects that. It says little about how the filter behaves once running.
2022 was the filter's year. IWM fell 20.5% on the calendar, buy-and-hold lost 20.1% and the template lost 10.7%, a lead of 9.4 points. The filter's loss came from whipsaws, not from a long hold through a decline. Its monthly numbers in 2022 were -2.8% in January, -3.0% in August, -2.6% in November and -2.8% in December, with cash for the other eight months.
2023 returned 8.6% against 16.4% for holding. The filter sold in March, lost 7.9% that month on the position entered on 2023-01-11, and did not re-enter until 2023-06-05. The recovery from the 2022 low was partly missed. 2024 was a tie at 11.1% each. In 2025 the filter made 9.4% against 12.4% and in 2026, a partial year to 2026-10-02, it made 11.8% against 14.9%. The gaps in 2023, 2025 and 2026 were 7.8, 3 and 3.1 points.
The filter was invested for most of 2024, 2025 and 2026 and its returns tracked the fund's closely, with the lag coming from entries after the average was reclaimed and from short exits inside rallies. The pattern is what a trend filter does: it pays in a decline and costs a little in each recovery.
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% | 1.0% | −0.7% | −1.7% |
| 2022 | −2.8% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | −3.0% | 0.0% | 0.0% | −2.6% | −2.8% |
| 2023 | 5.5% | −1.7% | −7.9% | 0.0% | 0.0% | 3.6% | 6.0% | −5.0% | −3.0% | 0.0% | 0.0% | 12.3% |
| 2024 | −3.9% | 5.5% | 3.5% | −6.7% | 4.9% | −1.1% | 10.1% | −1.7% | 0.7% | −1.4% | 10.9% | −8.3% |
| 2025 | 2.4% | −4.4% | 0.0% | 0.0% | 0.0% | −0.8% | 1.6% | 5.4% | 3.1% | 1.7% | 0.9% | −0.7% |
| 2026 | 5.3% | 0.7% | −6.4% | 10.7% | 4.4% | 3.6% | −3.0% | 0.9% | −5.0% | 1.3% | – | – |
Month by month
The best month was 2023-12 at +12.32%, and buy-and-hold's best was also 2023-12, at +11.92%. The filter's worst month was 2024-12 at -8.26% and holding's worst was 2022-04 at -9.58%. In 2022-04 the filter was in cash and recorded 0.0%.
The monthly grid for 2022 shows how much of the year the account sat out: April, May, June and July all read 0.0%, along with February, March, September and October. IWM's own record includes its worst days in June 2022, at -4.73% on 2022-06-13 and -4.62% on 2022-06-16, and the filter was not exposed to them.
The later months show where the filter paid for its lag. 2024-04 lost 6.7% and 2024-12 lost 8.3% while 2024-07 gained 10.1% and 2024-11 gained 10.9%. 2026-03 lost 6.4% and 2026-04 gained 10.7%, a pair of months that nearly cancel. IWM's seasonal averages show September at -3.27% and March at -1.74%, with July at +3.65% and November at +3.82%. These averages rest on five or six observations per month and describe this window only.
Every trade
200-day regime filter on IWM made 17 closed round trips and one position still open at the end of the test, an average hold of 57 days, an average winner of 5.45%, an average loser of −2.04%, a profit factor of 1.83, a longest losing streak of 4. It held a position at the close on 54.5% of trading days.
| Entry | Entry price | Exit | Exit price | Return | Days held |
|---|---|---|---|---|---|
| 2021-10-19 | $212.17 | 2021-11-29 | $212.96 | 0.4% | 41 |
| 2021-12-08 | $211.01 | 2021-12-10 | $209.19 | −0.9% | 2 |
| 2021-12-28 | $210.99 | 2021-12-29 | $209.58 | −0.7% | 1 |
| 2021-12-30 | $210.33 | 2022-01-03 | $211.50 | 0.6% | 4 |
| 2022-01-04 | $213.39 | 2022-01-06 | $205.55 | −3.7% | 2 |
| 2022-08-15 | $188.11 | 2022-08-18 | $187.40 | −0.4% | 3 |
| 2022-08-19 | $186.57 | 2022-08-22 | $181.56 | −2.7% | 3 |
| 2022-11-11 | $176.91 | 2022-11-15 | $179.02 | 1.2% | 4 |
| 2022-11-16 | $177.42 | 2022-11-17 | $172.84 | −2.6% | 1 |
| 2022-11-23 | $175.73 | 2022-11-29 | $173.49 | −1.3% | 6 |
| 2022-12-01 | $178.99 | 2022-12-06 | $173.86 | −2.9% | 5 |
| 2023-01-11 | $173.24 | 2023-03-13 | $165.20 | −4.6% | 61 |
| 2023-06-05 | $173.75 | 2023-09-19 | $175.85 | 1.2% | 106 |
| 2023-12-01 | $173.04 | 2025-02-25 | $212.50 | 22.8% | 452 |
| 2025-06-25 | $211.74 | 2025-06-26 | $210.21 | −0.7% | 1 |
| 2025-06-27 | $213.22 | 2025-08-04 | $214.03 | 0.4% | 38 |
| 2025-08-05 | $217.27 | 2026-03-31 | $242.53 | 11.6% | 238 |
| 2026-04-01 | $249.03 | open | – | 13.0% | – |
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.
The trades
The list opens with a run of small trades. The first, from 2021-10-19 at $212.17 to 2021-11-29 at $212.96, made 0.4% over 41 days. Next came 2021-12-08 to 2021-12-10 at -0.9%, 2021-12-28 to 2021-12-29 at -0.7%, and 2021-12-30 to 2022-01-03 at 0.6%. On 2022-01-04 the filter bought at $213.39 and sold on 2022-01-06 at $205.55 for -3.7%. Five trades in about three months made no progress.
The 2022 trades follow the same pattern. 2022-08-15 to 2022-08-18 lost 0.4%, 2022-08-19 to 2022-08-22 lost 2.7%, and the November and December trades lost 2.6%, 1.3% and 2.9%, with one gain of 1.2% on 2022-11-11. The filter bought a bounce above the average, the bounce failed within days, and it sold below. Holds in these trades were 1 to 6 days. A 2-day trade means price crossed the 200-day line and crossed back within days, and the list has several of them.
The 2023-01-11 entry at $173.24 held until 2023-03-13 at $165.20 for -4.6%, the worst trade. The 2023-06-05 entry made 1.2% over 106 days. Then came the winner. The entry on 2023-12-01 at $173.04 was held until 2025-02-25 at $212.50, 452 days, for 22.8%, the best trade. The filter stayed in through the 2024 year of 11.1%, and was sold only when price closed below the average in 2025.
The last four entries were 2025-06-25 at -0.7% in one day, 2025-06-27 at 0.4% over 38 days, 2025-08-05 to 2026-03-31 at 11.6% over 238 days, and the open position from 2026-04-01 at $249.03, which was up 13.0% at the end of the window. One trade of 452 days supplies most of the profit, and the 238-day trade and the open position add more. Remove the long holds and the filter would show a loss, since the small trades sum to a loss.
The average hold was 56.9 days, which hides a split between 1 to 6 day trades and 100-plus day trades. The longest losing streak was 4 and the longest winning streak was 2.
Re-entries in 2025 and 2026
The long trade ended on 2025-02-25 at $212.50 after 452 days, and February 2025 booked -4.37%, the filter's give-back on the way out. March, April and May 2025 all read 0, so the account sat in cash through the fund's April 2025 swing, which included a -6.47% day on 2025-04-03 and an 8.55% day on 2025-04-09. The filter came back on 2025-06-25 at $211.74, below its exit price, and sold the next day at $210.21 for -0.72%. It bought again on 2025-06-27 at $213.22 and held until 2025-08-04 at $214.03 for 0.38%. One day later, on 2025-08-05, it bought at $217.27, and that trade ran 238 days to $242.53 on 2026-03-31.
The three trades in that run, 2025-06-25, 2025-06-27 and 2025-08-05, show the signal flipping around the average for several weeks before price pulled away from it. The first two earned nothing, and the third produced the 11.63% gain. Each re-entry cost a slightly higher price than the previous exit except the first.
The exit on 2026-03-31 came after March 2026 lost 6.4%, and the re-entry on 2026-04-01 at $249.03 was followed by 10.73% in April. The sell and the buy sit a day apart. The filter's third drawdown of 10.71%, from 2026-01-22, recovered on 2026-04-20, a few days after the fund's own recovery on 2026-04-15. The open trade showed 13.04% on the last day, and the monthly figures after it were 4.38% in May, 3.6% in June, -3% in July, 0.91% in August and -5.05% in September.
December 2023 shows the opposite end. The entry on 2023-12-01 at $173.04 gave the best month of the record at 12.32%, and the same position was still held in December 2024, when the filter lost 8.26% and the fund had its -4.39% day on 2024-12-18.
Largest drawdowns
| Peak | Low point | Depth | Days to low | Recovered | Days to recover |
|---|---|---|---|---|---|
| 2021-11-08 | 2023-06-05 | −22.2% | 574 | 2024-10-16 | 499 |
| 2024-11-25 | 2025-08-01 | −11.3% | 249 | 2025-10-06 | 66 |
| 2026-01-22 | 2026-03-30 | −10.7% | 67 | 2026-04-20 | 21 |
Buy-and-hold's deepest drawdown ran from 2021-11-08 to 2022-06-16 and reached −31.3%.
Drawdowns
The largest drawdown was 22.16%, from 2021-11-08 to 2023-06-05, 574 days. It recovered on 2024-10-16, 499 days after the low. The second was 11.33%, from 2024-11-25 to 2025-08-01, recovered on 2025-10-06 after 66 days. The third was 10.71%, from 2026-01-22 to 2026-03-30, recovered on 2026-04-20 after 21 days.
Buy-and-hold had a 31.34% drawdown from 2021-11-08 to 2022-06-16 and recovered on 2024-11-06 after 874 days. Its second fall was 27% from 2024-11-25 to 2025-04-08 and its third 10.87%. The filter was shallower on the first two. In the second fall, from the same 2024-11-25 peak, the filter lost 11.33% to holding's 27%, which shows the effect of the exit most directly. The third was about level.
The filter's first drawdown starts on the same peak date as holding, 2021-11-08, and ends later, on 2023-06-05. The template was in cash for most of the fall to 2022-06-16, but its loss kept growing through whipsaws until mid-2023. The long length of that drawdown, 574 days to the low, reflects the many small losses in late 2022 and the early 2023 stop-out, not a single deep fall.
The fund's own record shows a deepest fall of 31.92% and a longest drawdown of 752 sessions.
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) | 4.7% | −22.2% | $12,999 | 0.40 |
| 5 basis points | 4.3% | −23.1% | $12,744 | 0.37 |
| 10 basis points | 4.0% | −24.0% | $12,524 | 0.35 |
What trading costs do
With 35 fills the template is cheap to test, and the cost runs show a modest effect. At 5 basis points per fill the CAGR falls from 4.67% to 4.31%, the final value falls from $12,999 to $12,743.83 and the maximum drawdown widens from 22.16% to 23.12%. At 10 basis points the CAGR is 4.0%, the final value is $12,523.60 and the drawdown is 24.03%. The Sharpe ratio goes from 0.4 to 0.374 and 0.352.
Many of the trades are 1 to 6 day round trips with returns under 3% either way, so slippage of 10 basis points on both sides matters more for them than for the long holds. IWM is liquid, with an average daily dollar volume of $5,885,548,447 and a median minute volume of 46,034 shares, so the tested costs are close to what a small account would pay.
Changing the parameters
| Version | CAGR | Max drawdown | Round trips | Win rate | Final value |
|---|---|---|---|---|---|
| Published rules | 4.7% | −22.2% | 17 | 41% | $12,999 |
| 100-day SMA | −0.4% | −28.6% | 45 | 27% | $9,765 |
| 150-day SMA | 0.0% | −29.9% | 28 | 21% | $10,002 |
| 250-day SMA | 4.9% | −18.2% | 8 | 13% | $13,172 |
What the parameter variants show
The window length changes the result sharply. A 100-day average gave a CAGR of -0.41%, a 28.59% drawdown and $9,765.35, with 45 trades and 12 wins. A 150-day average gave 0.0%, a 29.95% drawdown and $10,002.43, with 28 trades and 6 wins. A 250-day average gave 4.92%, an 18.22% drawdown and $13,171.60, with 8 trades and 1 win.
The pattern is clear in the trade counts. A shorter average crosses price more often, so the 100-day version made 45 trades against 17 for the published 200-day version, and it lost money and had a deeper drawdown. The 250-day version made 8 trades and had the best CAGR and the shallowest drawdown of the four. Its one winner was presumably a long hold, and the win rate of 1 in 8 shows that a trend filter can earn a return with very few winning trades.
The 250-day result is slightly above the published rules, and the 100 and 150 versions are below it. A longer window helped on IWM in this period, and the ordering matches the whipsaw story of the trade list. Each variant is one run in one window, and the ordering does not show that the longer windows are better in general.
How IWM behaved
| Measure | IWM |
|---|---|
| Data in this test | 2021-01-04 to 2026-10-02 (1444 sessions) |
| Total return, buy and hold | 55.8% |
| Annualized volatility | 22.4% |
| Deepest drawdown | −31.9% (2021-11-08 to 2022-06-16) |
| Up days | 51.7% |
| Average daily range | 1.75% |
| Average overnight gap | 0.61% |
| Correlation to SPY | 0.84 |
| Correlation to QQQ | 0.75 |
| Correlation to TLT | 0.08 |
| Sessions above the 200-day average | 63.3% |
| Crossings of the 200-day average | 34 |
| Falls of 10% or more from a 20-day high | 26 |
How IWM behaved
IWM is a US small-cap fund with higher volatility than the S&P 500. Its annualized volatility was 22.35% and its average daily range was 1.75%. It returned 55.8% over the window, a CAGR of 8.03%, with a deepest drawdown of 31.92%. It was up on 51.7% of days, with an average up day of 1.09% and an average down day of -1.08%. Its beta to SPY was 1.14 and its correlation to SPY was 0.84, to QQQ 0.75 and to TLT 0.08.
Calendar returns were 16.12% in 2021, -20.5% in 2022, 16.85% in 2023, 11.35% in 2024, 12.68% in 2025 and 15.12% in 2026. IWM closed above its 200-day average on 63.29% of sessions and crossed it 34 times in the window. Each crossing can produce a trade for a rule that acts at the next open, and the template's 35 fills cover 17 round trips and one open position.
The fund's returns came overnight. Overnight log returns were +69.84% and intraday log returns were -27.57%. A filter that enters at the open captures the overnight move on every day it holds.
Short-term oversold readings were mild. RSI(14) fell below 30 on 33 sessions with a 5-day median of 1.78% and a 20-day median of 0.22%, against baselines of 0.18% and 0.82%. RSI(2) under 10 appeared on 165 sessions with medians of 0.55% and 1.6%. A fall of 10% or more from a 20-day high happened 26 times over 67 days. The best days were +8.55% on 2025-04-09 and +6.12% on 2022-11-10, and the worst were -6.47% on 2025-04-03 and -4.73% on 2022-06-13.
How often IWM sat on each side of its 200-day line
IWM closed above its 200-day average on 63.29% of sessions. That is the share of time a filter built on the line could have been invested, and the filter was invested on 54.5% of sessions, a smaller figure, since it acts at the next open and was out of the market after each downward crossing until the next entry. The 34 crossings in 1444 sessions compare with 35 fills for the filter, so nearly every crossing turned into an order.
The drawdown statistics add context. The fund had 26 episodes of falling 10% from a 20-day high, spread over 67 days, which is a low count next to leveraged funds on this site. Falls of that size were short, and a filter that waits for a close under a 200-day line reacts to a different, slower kind of decline. In the 2021 to 2022 fall the fund took until 2022-06-16 to reach its low, and the filter was already out for most of that stretch.
The RSI(2) data show why the filter's whipsaws were not a trading edge in disguise. RSI(2) was under 10 on 165 sessions, and the median 5-day return was 0.55% against a baseline of 0.18%. Short dips on IWM tended to bounce, and a filter that sells on a close under the line is selling into such dips. The 2-day and 1-day trades in the 2021 to 2022 list fit that pattern.
Monday averaged 0.13% for the fund, and Tuesday through Friday averaged between 0% and 0.03%. February's average for the fund was 1.08%, and the filter's own Februaries ran from -1.71% in 2023 to 5.48% in 2024 to -4.37% in 2025, which gives no reliable seasonal pattern.
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 filter compares
Among the 12 templates on IWM, the filter ranks 4. RSI(2) snapback ranked first at 11.38% with a 22.81% drawdown. The weekly 7% target made 6.61% and the monthly cycle 6.48%. The filter made 4.67%, ahead of the dip buyer at 3.08%, momentum breakout at 1.35%, trend + trailing stop at 1.15% and golden cross at 1.05%. RSI mean reversion made 0.73% and EMA 12/26 0.18%. SMA 10/50 lost 1.2% and 3-month momentum lost 1.59%.
Among other broad index funds, the filter made 13.02% on QQQM and 12.9% on QQQ, with drawdowns near 19.9%. It made 11.2% on IOO, 8.41% on VOO, 8.3% on SPY, 7.86% on VV and 7.76% on EEM. IWM at 4.67% sits near the bottom, with VOOV at 4.31% and VTV at 4.26% below it. The median across all 59 funds was 1.84% and across the broad group 8.3%.
IWM's 17 round trips sit mid-pack among the broad index funds, from 10 on QQQ to 22 on VOOV, so the small-cap result came from the quality of the trades more than their count. The test has limits: one window, a 200-session warm-up that leaves 2021 mostly in cash, no fees in the headline run, and a single long winning trade that carries much of the profit. Results are hypothetical.
What a 200-day filter does on a choppy fund
A 200-day average moves slowly, so price can cross it many times without the average itself changing much. On a fund that climbs steadily, the crossings are few and the filter holds for long stretches. On a fund that ranges, as IWM did through 2022, price crosses the line repeatedly, and each crossing costs a small loss on the round trip.
IWM shows both cases in one record. In late 2021 and 2022 the average was close to price, and the filter made 12 of its 17 closed trades between 2021-10-19 and 2023-01-11, nearly all of them losses or scratches. After 2023-06-05 price moved away from the average and the filter made four closed trades and opened one more, including one of 452 days and one of 238.
The practical reading is limited to this fund and window. The rule did its job in a decline, as the 2022 comparison shows, and its cost was a run of small whipsaw losses. A buffer band around the average, which the template description mentions as one way traders reduce churn, was not tested here, so no figure covers its effect.
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 IWM?
Over 2021-01-04 to 2026-10-02, 200-day regime filter on IWM returned 4.7% annualized vs 7.5% for buy-and-hold: it trailed buy-and-hold by 2.8% per year, with a maximum drawdown 9.2 points shallower than holding (22.2% vs 31.3%).
How many trades did it make?
17 completed round trips over 5.7 years (35 fills), with 41% 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.
Did the 200-day regime filter beat buy-and-hold on IWM?
No on return, yes on drawdown. The filter made a CAGR of 4.67% against 7.5% for holding, and ended at $12,998.92 against $15,145.24. Its maximum drawdown was 22.16% against 31.34%.
How many trades did the filter make on IWM?
It closed 17 round trips and made 35 fills, with one position open at the end. It won 7, a win rate of 41%. The average winner was 5.45% and the average loser was -2.04%.
Which year did the filter do best against buy-and-hold?
2022. IWM fell, holding lost 20.1% and the filter lost 10.7%. It trailed in 2021, 2023, 2025 and 2026 and tied at 11.1% in 2024.
Why did the filter make so many short trades in late 2021 and 2022?
IWM crossed its 200-day average 34 times in the window, and several crossings came within days of each other. The filter bought above the average and sold below it, so some trades lasted 1 to 3 days and lost small amounts.
Does a different moving-average length help?
A 250-day average gave 4.92% with an 18.22% drawdown, slightly above the published rule. A 150-day average gave 0.0% and a 100-day average gave -0.41%. Shorter windows traded more and lost more in this window.
What do trading costs do to the result?
At 5 basis points per fill the CAGR is 4.31% and the final value is $12,743.83. At 10 basis points the CAGR is 4.0% and the final value is $12,523.60. The drawdown widens to 24.03%.
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.