Matana Labs

Out-of-sample test: the “Untouched slice” check

An out-of-sample test splits the backtest period by time and checks the strategy on the most recent part, which was held back. If the result changes sign or the drawdown gets much deeper on that untouched tail, the edge was probably fitted to the past. In Matana Labs this is the “Untouched slice” check, and it carries weight 3 in the score.

What it checks

Conclusions drawn on one part of the history are checked on the part that wasn't touched during optimization.

The question behind it: Is it just luck? In the app it is in Analysis Lab → Checks, stage “Required”. Can you trust the result at all? They come first and make up most of the score.

How it works

The period is cut by time: the head is for fitting, the tail for checking. The tail is always the last part, with no gaps. If an optimization map was built in the lab with the same held-out slice, the parameters of the best cell on the head are used. Otherwise the strategy runs as it is: two runs, head and tail.

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 Untouched slice check in Matana Labs: the head and the held-back tail side by side with result, drawdown, trades, profit factor and average trade, and the two equity curves
“Untouched slice” on a test data set: the fitting head on the left, the held-back tail on the right, and both equity curves below.

In the score out of 100

When it has a status, it counts toward the overall score with weight 3: “holds” earns full points, “with a caveat” half and “broke down” none; “can’t compute” is left out. If this check breaks down, the overall score can’t go above 35, however well the others do.

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

If it breaks down

The edge doesn't carry over to new data. Check the “Parameters” candidate — it's chosen on the head and honestly validated on the tail — and “Market regimes”: if the tail landed in a different regime, a regime filter is needed.

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 much of the period is held back?

By default the last 30% of the period. You can pick another share on the check’s page; the tail is always the most recent part, with no gaps.

Is this the same as walk-forward?

No. This check tests one held-back tail. Walk-forward refits and tests window after window across the whole period. Matana Labs runs both, and they answer different questions.

What if the tail has too few trades?

The check says it can’t compute instead of giving a status. The minimum is listed in the status rules on this page.