Monte Carlo Simulation
Available in the Monte Carlo tab of the Strategy Performance Report. It answers two questions: what range of results is it reasonable to expect from this strategy? and was the drawdown I suffered lucky or typical? To do so it generates 1,000 alternative histories from your real trades and shows you where yours falls.
Two methods, chosen at the top
The standard method, the same one AmiBroker uses. Each simulation draws as many trades as you have, from the real ones and with repetition: a good trade may come out twice and a bad one not at all, or the other way round. Both the path and the final result change, so you get a realistic range of what the strategy could have delivered.
Shuffles the same trades into a different order. The final result does not change (the sum does not depend on the order), only the path and, with it, the drawdown. It only answers «was I lucky with the order in which the losses came?».
The program remembers the chosen method. In both, the real sequence counts as one more simulation, so the percentage never reaches a misleading 100 %.
- → The real equity curve (amber line)
- → The p25–p75 band of the simulations
- → The p5–p95 band (the possible paths)
- → The median of the 1,000 simulations (blue line)
- →Real drawdown vs worst case (p95)
- →With bootstrap, the final result at the worst 5 %, the median and the best 5 %
- →Coloured rating: % of simulations with a worse drawdown than the real one
A real example
An @ES strategy with 235 trades made $288,675. With bootstrap, in the worst 5 % of histories it would have ended at $159,084, at $288,592 in the median and at $423,443 in the best 5 %. Its real drawdown ($49,043) beats that of 28 % of the simulations: WATCH zone, with a p95 worst case of $68,323.
That $159,084 is the prudent figure to get an idea of what can go wrong, far more useful than the single result of the backtest.
Performance
With 1,000 simulations and hundreds of trades, the full calculation (draws + equity + drawdown + percentiles) takes a fraction of a second and runs in the window itself, with no waiting.
The simulations are reproducible: when you come back to the tab you will see exactly the same chart.
AniQuant can be tried free for 14 days, with every module and no card. If you have the book, 30.