Do market regime filters separate future returns? We tested three against noise
Nothing cleared p ≤ 0.05. The quadrant rule came closest, with positive excess on all five markets and p = 0.073 on the Dow and SPY.
No edgeSource: docs/verdicts/2026-09-24-regime.md
Found nothing on a test with strict parameters. That doesn't mean there is no edge or value to traders. A strict test asks one narrow question, on the markets, anchors and settings we chose. Many traders use these tools to organise a chart, frame a plan or decide when to pay attention, and your market, anchor or timeframe may behave differently. Test it on yours: Studio's Test button scores a drawing against chance.
The question
Do the labels a regime classifier puts on the chart (up, down, sideways) separate what happens over the next 20 bars?
Method
Three rules, ported with their thresholds verbatim: a five-label quadrant rule and two-label 50- and 150-day moving-average filters.
Effect size is (max − min of per-group mean forward return) / pooled σ, 20 bars ahead.
Data
^GSPC, ^DJI, SPY, GC=F and BTCUSDT daily.
What chance looks like
Each rule's own noise floor: the effect size the same rule produces on surrogate paths. More labels mechanically widen the spread, so the quadrant's floor (0.19–0.32) sits far above the moving averages' (0.05–0.14). Comparing each against its own floor is what makes them comparable.
The null
40 block-bootstrap surrogates, with the block length set to a quarter of each classifier's own measured run length.
The result
Nothing clears p ≤ 0.05. The quadrant is the strongest and the most consistent, with positive excess on all five instruments and p = 0.073 on both the Dow and SPY. Suggestive, and at 40 surrogates not a result.
The 150-day average scores below its floor on the S&P, SPY and gold: its labels don't separate 20-day forward returns there.
A trap the test surfaced: the block bootstrap keeps structure shorter than a block. A planted 75-bar regime, tested with 30-day blocks, came back p = 0.31: a genuine result read as noise. Same series, same classifier, two block lengths, opposite conclusions. The runner now sizes blocks from each classifier's run length.
| symbol | model | runlen | effect | floor | excess | p | verdict |
|---|---|---|---|---|---|---|---|
| ^GSPC | quadrant | 8.9 | 0.263 | 0.239 | +0.024 | 0.244 | at the floor |
| ^GSPC | ma150 | 26.9 | 0.022 | 0.051 | -0.029 | 0.659 | below the floor |
| ^GSPC | ma50 | 13.9 | 0.095 | 0.076 | +0.018 | 0.390 | at the floor |
| ^DJI | quadrant | 8.9 | 0.526 | 0.217 | +0.309 | 0.073 | at the floor |
| ^DJI | ma150 | 22.1 | 0.108 | 0.068 | +0.040 | 0.195 | at the floor |
| ^DJI | ma50 | 14.6 | 0.124 | 0.068 | +0.057 | 0.098 | at the floor |
| SPY | quadrant | 8.5 | 0.377 | 0.241 | +0.136 | 0.073 | at the floor |
| SPY | ma150 | 25.6 | 0.037 | 0.068 | -0.031 | 0.585 | below the floor |
| SPY | ma50 | 13.8 | 0.088 | 0.062 | +0.026 | 0.268 | at the floor |
| GC=F | quadrant | 8.5 | 0.312 | 0.188 | +0.124 | 0.122 | at the floor |
| GC=F | ma150 | 26.1 | 0.018 | 0.096 | -0.079 | 0.927 | below the floor |
| GC=F | ma50 | 13.9 | 0.031 | 0.073 | -0.042 | 0.756 | below the floor |
| BTCUSDT | quadrant | 7.1 | 0.354 | 0.316 | +0.039 | 0.341 | at the floor |
| BTCUSDT | ma150 | 42.3 | 0.153 | 0.138 | +0.015 | 0.341 | at the floor |
| BTCUSDT | ma50 | 19.1 | 0.231 | 0.113 | +0.118 | 0.098 | at the floor |
What this does not say
- This is not a refutation of the moving-average trend filter. It measures whether the labels separate forward returns. A filter can reduce drawdown without that, by not being invested during the bad stretch. That claim needs a strategy test, and it has one: the trend filter.
- The ANOVA p-value was deliberately not used: overlapping forward windows on adjacent bars are not independent, and the surrogates overlap identically.
Where the code is
The engine is PyraTime's test harness. This verdict is docs/verdicts/2026-09-24-regime.md, and the code it ran is:
engine/scripts/regime_verdict.py
python -m scripts.regime_verdictThe tools this covers
Each of these pages says what the tool does and quotes this test:
Educational only, not financial advice. A test asks one narrow question on the data and settings named above.