How do you test a perpetual strategy across market regimes?

A market-regime test separates a strategy's historical results by conditions defined before each entry, such as a trend measure and volatility bucket. Its purpose is to show what contributes to the pooled result, not to rename winning periods after the fact. Use causal labels, report counts and costs, and test any proposed filter as a new rule on untouched data.

Why can one average hide two different behaviors?

A positive overall mean can combine strong results in one condition and losses in another. That finding is a research question, not immediate evidence that excluding the losing condition improves the next sample. Fewer trades, changing overlap and a new selection decision can all change the result.

Trading expectancy owns the pooled arithmetic. This worksheet asks how its component samples were selected and whether the labels could have existed at entry. It does not forecast the next market state or replace a written strategy plan.

How should labels be defined without hindsight?

Write an observable rule using only completed data before entry. For example, a hypothetical trend condition could require the previous completed close to exceed its 20-bar mean and that mean to exceed its value five completed bars earlier. Call the other group “condition not met,” not automatically a ranging market.

A separate volatility flag could compare a predeclared past-only range measure with a fixed development threshold. Define the formula and threshold before inspecting the scored interval. Do not label a period “high volatility” because a large move occurs after entry. Once labels are chosen, retain them even when the trade result is inconvenient.

The particular lookbacks are teaching examples, not recommended parameters. No historical market frequency or indicator effectiveness is asserted here.

What does a two-by-two breakdown show?

Arithmetic illustration only. A hypothetical sample of 50 trades reports net R after its stated costs:

Arithmetic illustration only.
Pre-entry condition Lower-volatility bucket Higher-volatility bucket
Trend condition met 15 trades, +9R 15 trades, +3R
Trend condition not met 10 trades, −2R 10 trades, −6R

Pooled result = 9 + 3 − 2 − 6 = +4R; mean = 4 / 50 = +0.08R per trade. Trend-condition rows combine to +12R / 30 = +0.4R. Other rows combine to −8R / 20 = −0.4R. Both volatility buckets contain more than one trend condition, so do not call volatility alone the explanation without checking the interactions.

These cells are invented teaching arithmetic, not observed evidence for a profitable filter. Counts are part of the result. A high average from a tiny cell can be less informative than the table makes it look.

What if one outlier carries a condition?

Suppose the +12R trend-condition group contains one +10R trade. Excluding that observation for a sensitivity check leaves +2R across 29 trades, or about +0.069R per trade. Keep the original result too: the purpose is to expose concentration, not to delete the trade from the record.

Likewise inspect drawdown and costs within cells. Volatile conditions may change execution assumptions; a chart-only result can hide worse fills. Do not add a speculative cost claim to one bucket simply because you want the proposed filter to work. Use recorded evidence or clearly labeled stress assumptions.

How do you test a proposed regime filter honestly?

Treat “only trade when condition X is met” as a new strategy rule. Choose it on development data, then evaluate on untouched later data. Re-run the full sequence because skipping one trade can allow another, and overlapping positions or daily limits can change which signals are admissible.

If you keep changing labels until the rows separate neatly, you are tuning the labels. Record that search just like a parameter-sensitivity experiment. Walk-forward testing can evaluate a predeclared chronological selection process, not excuse hindsight labels. Past performance does not guarantee future results.

What are the short answers on regime tests?

Can I define a regime from what happened after entry?

Not for a causal entry filter. A label used to decide a trade must rely on information available before that decision, not on the later outcome.

Does a losing regime mean I should immediately stop trading it?

No. It suggests a testable hypothesis. Evaluate the complete filtered rule on untouched data, including changed signal overlap, costs and sample size.

Why show counts beside net R?

Totals and averages can be dominated by small groups or a single outlier. Counts and sensitivity checks reveal how much evidence each cell actually contains.

Leveraged futures carry a high risk of loss.

Related: how to backtest a crypto futures strategy

Last reviewed by Ric Mescallado