Learn › Glossary › Regime Filter

Regime Filter

A coarse market-state check that gates other signals — most commonly 'only take long entries while price is above its 200-day average.' Regime filters don't generate trades; they veto them, keeping aggressive strategies out of hostile environments. They are among the highest-value, lowest-complexity additions to most systems.

A regime filter is a coarse check on the state of the market that decides whether a trading rule is allowed to act. The most common version asks one question: is price above its 200-day average? If yes, long entries are allowed. If no, the rule stays in cash or skips new buys. A filter does not produce trades of its own. It vetoes trades that another signal would have taken, or, in its simplest form, it is the whole rule.

The idea is old and the arithmetic is short. A simple moving average of the last 200 closes smooths daily noise, so the side of that line the price is on works as a slow label for the market's mood. Price above a rising average is the plainest definition of an uptrend, and the filter is the cheapest way to turn that definition into code. It belongs to the family of trend following rules, which accept late entries and late exits in return for staying out of long declines.

This page measures the idea with the 200-day regime filter template on 59 US-listed funds from 2021-01-04 to 2026-10-02. Each run starts with $10,000. The rule buys with 98% of the sleeve at the open when yesterday's close is above the 200-day average, and sells the whole position at the open when yesterday's close is below it. The headline runs have no fees and no margin. Across the 59 funds the median CAGR was 1.84%, the median maximum drawdown was 22.16% and the median Sharpe ratio was 0.36. The filter beat buy-and-hold on 26 funds and had the shallower drawdown on 50. It finished with a positive CAGR on 37.

Those counts point in two directions. A filter shortens drawdowns on most funds, and it gives up return on most of them. The effects come from different kinds of funds, and the real examples below separate them. People ask about this concept in two places on this site: the best strategy for beginners and whether leveraged funds can be held for years.

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 filter did across 59 funds

The snapshot table above holds the template's headline numbers. The median number of round trips was 18 and the median exposure was 57.8%, so the typical fund spent a little over half the window in the position. The median CAGR of 1.84% is low because many of the 59 funds are bonds, currencies, inverse funds and volatility products, where staying invested pays little.

By category the picture is clearer. The 12 broad index funds had a median CAGR of 8.3% against 14.42% for holding, a median drawdown of 19.82%, and the filter beat holding on 1 of the 12. The 6 sector funds had a median of 6.52% against 12.58%, and none beat holding. The 10 leveraged funds had a median of 12.4% against 23.55%, with a median drawdown of 42.2%, and 2 beat holding. In every group that rose in the window, the filter earned less than holding. That is the price of sitting out: the average lags while price recovers from a dip, so the filter buys back after part of the rebound is gone.

The groups that fell tell the other story. The 11 inverse funds had a median CAGR of -7.53% against -21.57% for holding, and the filter beat holding on 10 of the 11. The 3 volatility products had -12.16% against -16.06% and beat holding on all 3. The 7 bond funds had 0.37% against -0.78% and beat holding on 6. A filter earns its keep when the asset spends long periods below its average, because the rule is in cash for those periods and holding is not.

The calendar-year medians show the same split. In 2022 the median filter result was -12.4% and the median for holding was -12.7%, close to equal, and only 7 funds were positive. In 2021 the filter's median was 0% against 4.1%. 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 filter trailed in the five years the median fund rose and matched in the year it fell. That is a short record with one bear market, and it should be read that way.

Does the choice of 200 days matter

The template tests three other lengths on every fund. The median CAGR was 1.66% for a 100-day average, 1.36% for 150 days and 1.61% for 250 days, against 1.84% for 200. The median maximum drawdown was 24.34%, 24.79% and 24.64%, against 22.16% for 200 days. The median number of round trips was 30 for 100 days, 24 for 150 days and 16 for 250 days, against 18 for 200.

Two things show. The shorter average trades more, and the longer one trades less. The 200-day setting also had the best median return and the shallowest median drawdown of the four, though by margins of a fraction of a point. The differences are small relative to the spread between funds, which runs from -29.78% on UVXY to 24.95% on TQQQ. The length of the average mattered much less than the choice of fund.

The strategy page puts the reason for 200 plainly: it approximates a year of trading days and has been studied across decades of data, and it is not the best window for every asset. The 200-day regime filter page carries the per-fund results for all 59 funds.

The filter on real funds

SPY spent 77.99% of the window above its 200-day average and crossed the line 30 times. A filter on SPY was long most of the time, and it sat out part of 2022, when the fund fell 24.51% from its peak on 2022-01-03 to the trough on 2022-10-12. The calendar year was -18.16%. Holding SPY returned 14.56% a year with a 23.99% drawdown.

QQQ was above its average 75.18% of the time with 20 crossings. Its worst fall was 35% from 2021-11-19 to 2022-11-03, and the calendar year of 2022 was -32.39%. The fund recovered by 2023-12-12. A filter turns that kind of slide into time spent in cash, and the cost is the delay in getting back in.

TQQQ is the strongest case in the data for a filter on a volatile fund. It fell 81.68% from 2021-11-19 to 2022-12-28, and its calendar year of 2022 was -79.07%, and recovery took until 2024-12-04, 762 sessions at the longest stretch below a prior high. The 200-day filter on TQQQ returned 24.95% a year with a maximum drawdown of 36.54%, against 25.35% and 80.77% for holding. It gave up 0.4 points of CAGR and a large part of the drawdown, with 14 round trips and 59.8% exposure. See the TQQQ result. The same rule on QLD returned 21.57% against 23.55% with a drawdown of 28.75%.

IWM, the small-cap fund, was above its average 63.29% of the time with 34 crossings and a 31.92% maximum drawdown. TLT, the long Treasury fund, was above it only 35.18% of the time with 95 crossings, the most of any example, and lost 40.49% over the window with a drawdown of 44.06% that had not recovered. A line crossed 95 times in under six years produces many trades. UVXY was above it 4.18% of the time, and the fund lost 99.94% over the window.

The count of crossings is the useful number. A filter does well on funds that cross once or twice and stay on one side, and it does poorly on funds that cross constantly. TLT had 95 crossings and SPY had 30.

Where the filter loses

The strategy's own caveat is that price whips around the 200-day line during volatile bottoms, generating clusters of buy-sell pairs. The weakest results in the data show it. VXZ made 31 round trips with a win rate of 26%, VIXM made 30 with 17%, and both lost money at -11.42% and -12.16% a year. On both funds the filter was invested only 27% and 26% of the time. Most of the losses came from short, repeated entries.

The inverse funds show the same pattern with larger numbers. SOXS had 14 round trips and a win rate of 0%, with a CAGR of -19.74% and a drawdown of 72.5%. UVXY had 12 round trips, a win rate of 0%, a CAGR of -29.78% and a drawdown of 86.86%. Those funds fell for most of the window, and the filter's few entries came during short rallies that reversed. The filter did better than holding on both, by 28.53 and 18.96 points of CAGR, and still lost money. Beating holding is a different statement from making money.

SOXX, a sector fund, is a mixed case. The filter returned 19.21% a year with a 39.17% drawdown, 19 round trips and a win rate of 26%, against 31.11% for holding. A low win rate with a positive CAGR means a few trades carried the result. SOXL had the same shape at 36% wins and 23.44%.

Some traders add a buffer band around the line to reduce churn, which the strategy page mentions as a common fix. The template here uses no band. The test does not measure what a band would have done.

How the filter compares with the other 11 templates

The other templates in the library are measured on the same 59 funds. The weekly 7% target had the highest median CAGR at 6.61%, followed by monthly cycle at 5.46% and RSI(2) snapback at 4.74%. The regime filter's 1.84% sits near the bottom. Its median drawdown of 22.16% is among the shallower ones, behind RSI(2) snapback at 17.47% and momentum breakout at 20.1%, and just behind golden cross at 21.84%.

The counts of funds beating buy-and-hold are more useful. The regime filter beat holding on 26 of 59. RSI(2) snapback and the weekly target did it on 34 each, golden cross on 27, RSI mean reversion on 25, and monthly cycle on 14. A filter that holds the same asset as a buy-and-hold investor and only avoids some days has no way to beat holding on a fund that rises almost continuously, and the number reflects that.

The trade counts differ by orders of magnitude. The median round trips were 166 for RSI(2) snapback, 106 for the weekly target, 22 for EMA 12/26 trend, 18 for the regime filter and 3 for golden cross. The regime filter is a low-turnover rule, and costs have little to act on, as the cost runs on its per-fund pages show.

Using a filter alongside another rule

A regime filter can sit on top of another signal. The definition on this page says filters veto trades, and the typical use is to take an entry signal, such as an RSI dip, only while the fund is above its 200-day average. The tests on this site run each template alone, so there is no measured number here for a combined rule, and none is claimed.

What the data supports is narrower. Funds that spend most of the window above the average, like SPY at 77.99%, give a filter little to veto. Funds that spend most of it below, like TLT at 35.18% and UVXY at 4.18%, give it a lot to veto, and on those funds the filter alone cut the damage. A filter on top of a short-term rule would be most active on the second kind of fund.

In DeployQuant a user can write a rule like this in plain English, from visual blocks or in Python, and then backtest it on minute data. A user who wants to test a filter on a particular fund can build the rule of yesterday's close against a 200-day average, run it on that fund, and read each trade the backtest logs.

Limits of these numbers

The window is 5.74 years and contains one bear market, in 2022. All the results are from backtests. The headline runs have no fees or slippage, orders fill on minute bars, decisions are made once a day at the open, and no margin is used. Prices in trade lists are adjusted for splits and dividends. A rule that worked on a fund in this window can behave differently in another one, and none of this is a forecast.

Frequently asked questions

What is a regime filter in trading?

It is a coarse check on the market's state that decides whether a rule may act. The most common form allows long entries only while price is above its 200-day average. A filter vetoes trades instead of generating them, though in its simplest form it is the entire rule.

Does a 200-day regime filter beat buy-and-hold?

On 26 of the 59 funds tested it did, and on 50 it had the shallower drawdown. The median CAGR was 1.84% and the median drawdown was 22.16%. It beat holding most often on inverse funds, 10 of 11, and least often on funds that rose steadily.

How well did it work on TQQQ?

The filter returned 24.95% a year with a 36.54% drawdown, against 25.35% and 80.77% for holding. It made 14 round trips and was invested 59.8% of the time. The drawdown was cut sharply and the return was almost unchanged.

Is 200 days the best length?

Not by much. The median CAGR was 1.84% for 200 days, 1.66% for 100, 1.36% for 150 and 1.61% for 250. The differences are small next to the spread between funds.

When does a regime filter lose money?

When price crosses the average repeatedly. VXZ and VIXM made 31 and 30 round trips with win rates of 26% and 17%, and both lost money. TLT crossed its average 95 times in the window.

Does a regime filter work on inverse funds?

It lost less than holding on 10 of 11 inverse funds, with a median CAGR of -7.53% against -21.57%. That is still a loss. The filter cut the time in the fund but the funds fell for most of the window.

Can I add a regime filter to another strategy?

A rule can check the filter condition before it takes an entry, and DeployQuant supports plain-English, block and Python rules. The tests here run each template alone, so there is no measured result for a combined rule.

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

SMA (Simple Moving Average)The arithmetic average of the last N closing prices, recalculated each…Trend FollowingA strategy family that buys assets in established uptrends and steps a…

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.