Matana Labs

Market regime analysis: the “Market regimes” check

A market regime analysis splits a strategy’s trades by the kind of market they were made in. Matana Labs labels every day from the days before it, as trend, mean reversion or range, and as calm, normal or choppy, using the same thresholds as the app’s Quick analysis. A strategy that loses in one regime may need a filter for it.

What it checks

Where the strategy lives: in a trend, in a range, on calm or choppy days.

The question behind it: Where does it work and where not? In the app it is in Analysis Lab → Checks, stage “Deep”. For extra confidence: market regimes, neighboring timeframes, other tapes, noise. Can be skipped.

How it works

Each day of the period is labeled from the previous 20 days with the same thresholds as in “Quick analysis”: a correlation between neighboring days above 0.12 is a trend, below −0.12 is mean reversion, otherwise a range; an average daily range above 2.5% is choppy, below 1% is calm. Trades are split by their entry day.

How it gets its status

These are the app’s own rules, shown on the check’s card:

With fewer than 30 trades or 20 days in the run, the check still shows its numbers, but its status is at most “with a caveat” and the result is marked as unreliable.

How to read the result

The Market regimes check in Matana Labs: a table of regimes with trades, result, average trade, status and example days
“Market regimes” on a test data set: the strategy’s trades split by market regime.

In the score out of 100

When it has a status, it counts toward the overall score with weight 1: “holds” earns full points, “with a caveat” half and “broke down” none; “can’t compute” is left out.

Every plan, the free one included, can run it; any engine runs it needs are counted in backtest-years.

If it breaks down

In these regimes the strategy loses. The candidate below shows what it would be without such days; the regime condition can be built in the constructor.

This is the app’s own suggestion; under Improvement the app tests candidate changes on the engine before it shows them.

Screenshots show the real app on a test data set. Backtests and simulations are not real trading, and past results don’t guarantee future ones. Not investment advice.

Keep reading

See Matana Labs plans, from free

Questions

Can a trade count in two regimes?

Yes. Each day has a direction label and a volatility label, so a trade counts once in each of the two splits.

Does the label use future data?

No. Each day is labelled from the days before it, so the label is known when the trade is made.

What do I do with a losing regime?

You can build a regime condition in the strategy builder and test it. Check the change on held-back data so you don’t fit the past.