Monte Carlo simulation in Matana Labs: three methods
A Monte Carlo simulation reshuffles a backtest’s results many times to show how much of the outcome was luck. Matana Labs uses three methods on the run’s days and trades: shuffle the order of days, randomly skip trades, and resample days with replacement. You see the median result, the worst outcomes and how often the drawdown passes your pain threshold.
What it checks
One curve is one realization. The spread shows how much of the result and drawdown were luck.
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
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.
How it gets its status
These are the app’s own rules, shown on the check’s card:
- broke down: on resampling days the median result ≤ 0
- with a caveat: the drawdown is worse than the pain threshold in more than 25% of cases
- holds: otherwise
- can't be computed: fewer than 5 days or fewer than 3 trades
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

- One row per method, with the median result, the worst five percent, the median drawdown, the drawdown you would see one time in twenty and how often the drawdown is worse than your pain threshold.
- The histogram shows the results of resampling days; green buckets are profits, red are losses.
- The note below is a reminder that these are reshuffles of results already computed, not new engine runs.
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 drawdown from the spread, not the baseline one; reduce position size.
This is the app’s own suggestion; under Improvement the app tests candidate changes on the engine before it shows them.
Keep reading
Questions
What is the pain threshold?
The drawdown you don’t want to see, 20% by default. You can change it on the check’s page; the status looks at how often any method goes past it.
Does Monte Carlo rerun the strategy?
No. It reshuffles the days and trades the run already has, so it is fast. The shuffled history stress test is the version that reruns the engine.
Which method decides the status?
The median of resampled days decides whether it breaks down; the share of drawdowns past the pain threshold, across all three methods, decides the caveat.