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:
- broke down: the tail result is ≤ 0 while the head is positive, or the tail drawdown is 2 times the head's or worse
- with a caveat: the tail is positive, but its profit factor is below 70% of the head's or its average trade is below 50%
- holds: the result's sign is the same, drawdown is the same order of magnitude
- can't compute: fewer than 2 trades in the tail (soft small-sample mode; strict mode needs 30 trades and 20 days)
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

- Two cards, head and tail. Each shows its dates, days, result, drawdown, trades, profit factor and average trade, so you can compare the two parts line by line.
- Which parameters were used is written above the cards: the strategy as it is, or the best cell of an optimization map built on the same head.
- The chart puts the two equity curves one after the other; the tail starts again from the same capital, so its slope is comparable.
- The tail positive and the head negative still earns only “with a caveat”: the profit sits on the wrong side of history.
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.
Keep reading
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.