How robustness is measured
Matana Labs has 31 robustness checks, each a real engine run or a cut of the trades already computed, with written thresholds. Their statuses roll up into a transparent score out of 100. This page lists all of them and how the score is built; each check has its own page with the exact rules.
The score out of 100
- Each check ends in one of four statuses: holds (1 point), with a caveat (½ point), broke down (0) or can’t compute (left out of the score).
- The score is the weighted average of the points: the untouched slice and random entry weigh 3 and 3, walk-forward 2, the other required checks 1.5, all others 1.
- If the untouched slice or random entry breaks down, the score cannot go above 35, however well the rest do.
- The score is shown once at least 6 checks have a status. Under 40 is weak, 40 to 69 holds with caveats, 70 and above holds.
- With fewer than 30 trades or 20 days, checks still show their numbers but no status above “with a caveat”.
The guide Read the score walks through a real result.
All 31 checks
Required
- Untouched slice: Conclusions drawn on one part of the history are checked on the part that wasn't touched during optimization.
- Walk-forward: Whether the idea survives regular re-optimization, not just one lucky tail.
- Parameter shift: A peak instead of a plateau is overfitting. Good logic doesn't die from shifting a threshold by a tenth.
- Costs ×2 and ×3: An edge that only lives at near-zero commission isn't an edge.
- Execution delay: The order was created at second T and filled later — at the price and volume of that later second. If the idea dies from a few seconds' delay, it isn't fit for a live market.
- Share of the second's volume: Size ceiling: how much the strategy can take from the market without imagining fills.
- Random entry: If random entries with the same trade profile give nearly the same result, there's no signal.
- Benchmark: buy and hold: A gain against nothing doesn't count as a win.
- Ablation: without one: What's redundant in the logic and what holds up the gain. This is diagnostics of the construction, not a verdict on the edge.
- Crashes and days from the tape: Not a textbook “2008”, but what's actually in the file: this symbol's worst drops and special days from this period.
- Result concentration: Three trades made the whole gain — there's no repeatability.
- Dead rules: Tuning a rule that never fires changes nothing. A dead rule is a hole in the design, not proof that there's no edge.
Stress tests
- Crash inside the position: What happens if the market crashes a minute after entry — not on average, but at the worst possible moment.
- Volatility ×2 and ×0.5: The market can be twice as choppy or twice as quiet. A strategy optimized for one range breaks in the other.
- Shuffled history: One history is one order of days. In a different order, the same days could give a completely different drawdown.
- Without the best and worst market days: If the whole gain was made on the ten strongest days for the symbol, that's not a strategy — it's lucky presence.
- Worst three months: Average numbers don't hold you up — the worst stretches do. How much you can lose in a quarter, and how long you'll wait after.
- Losing streak: A long losing streak breaks people before it breaks the strategy. What matters is whether it's longer than plain chance would give.
Deep
- Market regimes: Where the strategy lives: in a trend, in a range, on calm or choppy days.
- Neighboring timeframes: Does the idea hold on neighboring steps, or only on one lucky one.
- Other tapes: Same logic on another symbol — is there anything in it beyond the quirks of one symbol.
- Noise on its own tape: An idea that dies from small price noise rests on random second-level coincidences.
- Monte Carlo: three dials: One curve is one realization. The spread shows how much of the result and drawdown were luck.
- Custom segment by dates: For “that week I remember”. Result only, no status.
- Opposite sign: If the mirrored strategy is nearly as good, that's the symbol's movement, not the idea.
- Calendar effect on the tail: “Thursday is better” and “best hour” aren't proven on the full history: they need to show up on a slice where they weren't searched for.
After optimization
- Two optimization maps: Best cell on the left and red on the right is a normal outcome — you should see it first.
- Adjustment for the number of attempts: The best of K always looks good. The honest Sharpe is adjusted for K.
- Combinatorial windows with a gap: Time is serial: ordinary cross-validation peeks across the seams. Here the seams are closed off by a gap, and the test slices are any pair, not necessarily consecutive.
On live days
- Forward test with no money: The strategy must trade forward through new seconds of the tape, with no money at stake.
- Incubation with small capital: The path from history to money. The app doesn't walk it for you and doesn't set a “done” checkmark.
Monte Carlo: three methods
Three separate methods over already-computed days and trades: (1) shuffle the order of days, keeping the set of daily P&L; (2) randomly skip 20% of trades; (3) redraw the same number of days from your own days again (like “day sweep”). 2000 times each, seed 11.
- Shuffle the order of days: the same daily results in a different order, which changes the path and the drawdown, not the total.
- Skip 20% of trades at random: what if some signals had been missed.
- Draw the same number of days again from your own days, with repeats (bootstrap): a different history made of the same kind of days.
Each is repeated 2,000 times with a fixed seed (11), so the same run gives the same answer. The check breaks down when the median result of the bootstrap is not positive, and gets a caveat when drawdowns beyond the pain level (20% by default) are too frequent. The Shuffled history stress test reruns shuffled days on the engine itself. Guide: Monte Carlo for traders.
Walk-forward and the untouched slice
Walk-forward: The period is cut into consecutive windows. If parameters are marked for optimization, a grid around the current values is tried on the fitting window, and the best combination by result (only among those with at least 10 trades) is used on the next test window; then both windows move on. If none are marked, the strategy runs as it is and the windows only observe. The test window never overlaps the fitting window.
Untouched slice: 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.
Our study Walk-forward reality: how optimized backtests decay out of sample measures how much optimized results shrink out of sample.
Other symbols: similar instruments of the same class
Other tapes: The same strategy JSON on 12–16 similar instruments of the same class and session, over the same period as far as each tape has it. The set for a symbol is always the same: stocks and ETFs (never 24/7 crypto), FX, futures, crypto, and metals and commodities each stay with their own kind. Similar instruments of the same class: same industry first, then sector, for a stock; the same category for an ETF (broad market, sector, leveraged, bonds…); then the most liquid instruments of the class. The same instrument under another ticker (a micro contract, a second share class) is left out. No file, and that instrument is skipped.
- Holds: the same sign of the result on at least 75% of the similar instruments
- With a caveat: the same sign on fewer than 75% of the similar instruments
- Can’t compute: no similar instruments in the data folder
It is not every symbol on the server: a fixed set keeps the cost of a full run of the checks predictable and never mixes in markets with other trading hours, like round-the-clock crypto for a stock strategy.
Parameter neighbourhood and overfitting
- Parameter shift: Each number from the strategy blocks (thresholds, periods, stops, sizes) is shifted ±10% and ±20% one at a time, the rest untouched. Each combination is a run. The base isn't shifted.
- Two optimization maps: Up to two numbers from the strategy blocks (marked ones, otherwise the first two) — five values per axis: −40, −20, 0, +20, +40%. Each cell is an engine run on the head (70% of the period) and separately on the held-out tail (30%). The best cell is chosen by the head only; the tail wasn't seen during selection.
- Adjustment for the number of attempts: Deflated Sharpe (Bailey and López de Prado) on the same optimization as “Two maps”: how many cells, the best daily Sharpe on the head, and what bar the best of K random ones would set.
- Combinatorial windows with a gap: The period is cut into 5 slices. Each pair of slices, in turn, is validation (10 combinations), the rest is optimization over a grid of −20, 0, +20% for the marked numbers (or the first two from the blocks, if none are marked); a 5-day gap is dropped around the validation slices. Optimization and validation are continuous engine runs over day lists.
- Random entry: What stays the same: the number of trades, the distribution of holding times, the side and size of each trade, the stops and targets in percent from the rules, the same costs and session. Entries are placed at a random second of a random day in the period. The original strategy's entry moments are not used. There are N draws; the seeds are fixed and shown.
Guide: How to spot an overfit backtest.