Matana Labs

Shuffled history test: the “Shuffled history” check

A shuffled history test reruns a strategy on the same trading days in a different order. Matana Labs runs the engine over the days in many random orders, carrying capital and positions from day to day, and compares the drawdowns with the original one. If most orders give a much deeper drawdown, the original order was lucky.

What it checks

One history is one order of days. In a different order, the same days could give a completely different drawdown.

The question behind it: Will it survive a shock? In the app it is in Analysis Lab → Checks, stage “Stress tests”. What happens on bad days that never occurred in history: a crash mid-trade, doubled volatility, shuffled history.

How it works

The same days of the period, but in random order: 20 consecutive engine runs, capital and positions carry from day to day. Seeds 300…319. This shows what drawdown to expect from this same strategy on the same days.

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 Shuffled history check in Matana Labs: the base drawdown, the median drawdown of shuffled orders, the worst five percent and the median result
“Shuffled history” on a test data set: the drawdown of the original order next to the shuffled ones.

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

Budget for the worst-ordering drawdown; reduce position size.

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

How is this different from Monte Carlo?

This check reruns the engine on the days in a new order, so the strategy trades them again. The Monte Carlo check reshuffles the daily results and trades the run already has, without rerunning.

Why do some intraday strategies show no change?

An intraday strategy with a fixed size trades each day the same way whatever the order. The order only matters when sizes depend on capital.

How many orders are tried?

The number of orders and the seeds are in “How it works” above and on the check’s card; the seeds are fixed, so a rerun gives the same result.