Monte Carlo Simulator for Trading
Resample a strategy’s trades thousands of times to see the range of equity curves, drawdowns and returns the same edge could have produced.
CSV format
One row per closed trade with its net profit or loss in account currency. A header row is recommended. Exports from NinjaTrader, TradeStation, MultiCharts, MetaTrader and Build Alpha work as-is: the profit column is detected automatically, and you can change it after loading.
| date | pnl |
|---|---|
| 2024-01-03 | 412.50 |
| 2024-01-05 | -187.50 |
| 2024-01-09 | 75.00 |
| … | … |
pnl(required): losses are negative.$, thousands separators and(123.45)style negatives are fine.date(optional): not used by this calculator, so you can leave it out.- Comma, semicolon or tab delimited. Extra columns are ignored.
Simulation settings
How to Use the Monte Carlo Simulator
Paste your strategy’s closed trades into Trade list or upload a trade export under Upload CSV; if you don’t have trades, use Win rate & averages to simulate from summary stats. Set the starting capital, the number of simulations and the drawdown level you care about. Resample with replacement draws trades at random, so some runs repeat good or bad trades and outcomes vary; Reshuffle keeps the exact same trades and only changes their order, which isolates the effect of sequence on drawdown. Click Run Monte Carlo simulation to see the spread of equity curves, the max drawdown distribution and a percentile table.
Why Monte Carlo Simulation Matters for Strategy Validation
A backtest is one ordering of trades out of an enormous number of possible orderings, and the drawdown it shows depends heavily on luck in that sequence. Monte Carlo simulation shows the range, so you can size positions and set expectations from the worst reasonable case instead of the single historical path. It cannot fix a curve-fit strategy, since it only reshuffles the trades you give it, which is why it belongs alongside out-of-sample and walk-forward testing.
Go deeper: Monte Carlo Simulation guide · Monte Carlo Permutation guide · Monte Carlo simulation in the trading glossary
Build Alpha generates thousands of strategy variations and runs Monte Carlo resampling, reshuffling and randomized-trade tests on each one, alongside walk-forward, noise and vs-random tests.
Generate and validate strategies in Build Alpha →Frequently Asked Questions
It is a way to stress-test a strategy by generating thousands of alternative trade sequences from its historical trades, then measuring the drawdown and return of each. The spread of results shows how much of the backtest came down to the order the trades happened in.
Reshuffling changes only the order of the same trades, so every run ends with the same net profit but a different drawdown. Resampling with replacement draws trades at random, so some trades appear more than once and others not at all, which varies both the drawdown and the final profit.
A few thousand runs is usually enough for stable percentiles; this tool offers up to 10,000. More runs make the tails, such as the worst 5% drawdown, more precise but do not add information beyond the trades you supply.
The backtest shows one sequence. Across thousands of sequences, some cluster losing trades together, so the 95th percentile drawdown is normally larger than the historical one. That larger figure is a more realistic basis for position sizing.
Not on its own. It assumes your trades are representative of the future. If the strategy was curve-fit, every simulated run inherits the same inflated trades. Pair it with out-of-sample, walk-forward and noise testing.
Related Tools
CFTC RULE 4.41: HYPOTHETICAL OR SIMULATED PERFORMANCE RESULTS HAVE CERTAIN LIMITATIONS. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under- or over-compensated for the impact, if any, of certain market factors, such as lack of liquidity. Simulated trading programs in general are also subject to the fact that they are designed with the benefit of hindsight. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.
Trading futures, forex, stocks and options involves substantial risk of loss and is not suitable for every investor. Past performance, whether actual or indicated by historical tests of strategies, is not indicative of future results. This tool is provided for educational purposes only and does not constitute investment advice or a recommendation to buy or sell any security or instrument. Calculations run entirely in your browser; your inputs and files are not uploaded or stored.