---
title: "Monte Carlo and Bootstrap for Trade Results"
description: "How Monte Carlo and bootstrap replay a strategy's trades, why trade order changes drawdown, how many paths are enough and what resampling cannot show."
source_url: "https://www.rupeecase.com/learn/path-19/module-19-8-monte-carlo-and-bootstrap"
---

[Path 19 8 of 16](/learn/path-19/)Monte Carlo and bootstrap of trade results[Next 19.9](/learn/path-19/module-19-9-microstructure-models)

Monday 30 Mar 2026. Nifty closed at 22,331.40, 15.2% under its close of 26,328.55 on 2 Jan. A strategy run through those weeks has one equity curve, and the curve is one draw from many that the same trades could have made. Put the same trades in a different order, or draw them again with replacement, and the worst fall moves a long way. Monte Carlo and bootstrap are the two ways to replay the dice. This lesson shows what each does, why the order of trades changes the drawdown but not the end value, how many replays are enough, and the loudest limit: a resample can never produce a loss the sample does not hold. The runs are models with made up inputs, and nothing here is a view on where Nifty goes.

3By the end you can

1. Say how Monte Carlo on odds differs from a bootstrap of trades.
2. Show that trade order changes the drawdown and leaves the end value alone.
3. Judge the number of paths and the limits of any resampled worst case.

Watch in the terminal: what do hit rate, payoff and expectancy mean? A short tutorial on sample data.

## The idea, plainly

### What does Monte Carlo do for a strategy?

A backtest gives one path through history. Monte Carlo makes many paths from a stated recipe and reads the spread. The recipe in the model below is a win rate, a payoff ratio and a share of the account risked on each trade. Every simulated trade wins or loses by a seeded random draw, and the account is multiplied up or down. Run 2,000 paths of 250 trades and read the 5th percentile, the median and the 95th percentile of the account at each point, and the share of paths that touch a loss level. It answers a different question from the backtest: not what happened, but how wide the range of outcomes was for the same odds. The inputs come from [strategy metrics](/learn/path-19/module-19-2-strategy-metrics) and the sizing from [position sizing](/learn/path-12/module-12-7-position-sizing-and-risk-of-ruin).

### What is a bootstrap, and how is it different?

A bootstrap needs no win rate. It takes the list of trades the strategy actually made and draws from it at random, with replacement, to build a new list of the same length. The result of each trade is kept as it was, so odd sizes and fat tails in the sample stay. It then runs the account through the new list and records the drawdown and the end value. Repeating this thousands of times gives a distribution that comes from the strategy's own trades, not from a recipe. A plain bootstrap treats trades as independent. If wins and losses come in streaks, a block bootstrap draws runs of consecutive trades instead of single ones.

Maths: the bootstrap, step by step
1. List the n trade results
2. Draw n of them,
each time with replacement
3. Compound the new list
4. Record drawdown, end value
5. Repeat many times

The percentiles of step 4 over the repeats are the answer. The sample is the whole of what the method knows about the strategy, so a sample of 20 trades has at most 20 distinct results to draw from, and the draws can never contain a result that is not in it.

The term this section turns on: Bootstrap

From the module glossary; every term is in the Learn glossary too. Source: Module 19.8, Monte Carlo and bootstrap of trade results.

### Why does the order of trades matter?

Compounding is multiplication, and multiplication does not care about order. Five wins of three percent and five losses of two percent, in any order, end at 1.05 times the start. What changes is the road. Alternating wins and losses never falls more than 2.0 percent from a peak. Five losses in a row at the start fall 9.6 percent. Losses in a cluster of three and a cluster of two, with a win between, fall 6.9 percent. A real strategy does not choose its order, and a drawdown in a backtest is the one the dates happened to give. Shuffling the order many times shows the range of drawdowns the same trades could have made. It is the cheapest honest check on a backtested drawdown, and its worst shuffles usually fall further than the backtest did.

One set of trades, three orders, three drawdowns

Made up trades: five wins of three percent and five losses of two percent, each compounding on the account. The end value is the same in every order. Plain arithmetic, not market data. Source: RupeeCase arithmetic, no market data. As of 17 Oct 2026.

### How many paths are enough?

A Monte Carlo answer has its own error. The share of paths that touch a level is an estimate with a standard error that falls with the square root of the number of paths. The table runs the model of the worked example below with five percent of the account risked a trade, at two sizes, and the smaller size with three seeds. A seed fixes the sequence of draws, so the same seed gives the same answer. At 200 paths the answer wobbles by several points between seeds. At 20,000 paths it settles. Quote the paths, the seed and the error with any simulated figure.

| Paths | Seed | Hit the level | Error |
| --- | --- | --- | --- |
| 200 | 1 | 46.0% | 3.5% |
| 200 | 2 | 44.0% | 3.5% |
| 200 | 3 | 50.0% | 3.5% |
| 20,000 | 1 | 48.0% | 0.35% |

Maths: the error of a simulated share
SE = square root of
p × (1 − p) ÷ paths

Here p is the share of paths that hit the level. To halve the error, quadruple the paths. At p near one half the error is about one half divided by the square root of the number of paths, so 200 paths give about 3.5% and 20,000 give about 0.35%. The error is only the sampling error of the simulation. It says nothing of whether the inputs are right.

### How do I read a simulated range?

Three outputs matter, and they answer different questions. The percentile band says how wide the end values were for the same odds. The share of paths that touch a loss level says how often a given pain arrives on the way. And the distribution of the largest fall says where the backtest's own drawdown sits. If the backtest fell less than almost every simulated path, the history was kind, and the real record should be expected to fall further. If it fell about as far as the middle path, it was ordinary. A backtest drawdown that is better than the simulated median is a caution flag, not a feature. None of this uses the future. It describes how much of a record is the odds and how much is luck.

Watch in the terminal: what do ulcer, pain and time under water add? A short tutorial on sample data.

### What can resampling never tell me?

It cannot invent a loss the sample does not hold, and for a seller of far options that is the loss that matters. Take the model of a weekly seller of one far Nifty put, with fair prices. In any week the chance of a loss of more than ten times the premium is 3.4%. In a sample of 20 weeks, the chance that no such week appears is 50 percent. A bootstrap of that sample cannot draw a tail week and will report a tidy distribution. A year of fifty two weeks leaves 17 percent of samples without one, and a hundred weeks 3 percent. The other limits are older. If the trades came from a biased backtest, the resample inherits the bias, and costs, regime changes and dependence between trades are all outside the recipe.

A sample of 20 weeks misses the tail about half the time

Model, not market data. A tail week is a loss of more than ten times the premium on a far put of the 10 Jun 2026 weekly chain, priced fairly. Each bar is the chance that a sample of that length holds none. Source: RupeeCase model, inputs from NSE end of day data. As of 10 Jun 2026.

## Worked example: one edge, many paths

The model has a win rate of 40%, an average win of 1.8 times the average loss and a risk of 3% of the account on each trade. The expectancy is 0.12 R a trade and Kelly is 6.7%. Over 2,000 paths of 250 trades, the median account ends at 1.84 times its start. The weakest twentieth end at 0.68 or less and the strongest at 5.87 or more. A path stops trading when it touches the loss level, which is why the lower line flattens near it. The chance that a path touches a loss of 30% of the account on the way is 24.9%, with a simulation error of 0.97%. Every one of those paths has the same positive edge.

Model, not market data

One edge, a wide band: the weakest twentieth ended at 0.68 times the start

The 5th percentile, median and 95th percentile of the account across 2,000 simulated paths. The edge is the same on every path, so the width of the band is luck. Inputs: win rate 40%, average win 1.80 times the average loss, 3% of the account risked on each trade, ruin at a 30% loss of the starting account, 250 trades, 2,000 simulated paths, seed 1. Source: RupeeCase model, seeded simulation. As of 17 Oct 2026.
Model, not market data

Same edge, bigger size, a far higher chance of a deep fall

Each bar is a separate run with the same seed and inputs, changing only the share risked on a trade. The inputs line gives the three percent run. Inputs: win rate 40%, average win 1.80 times the average loss, 3% of the account risked on each trade, ruin at a 30% loss of the starting account, 250 trades, 2,000 simulated paths, seed 1. Source: RupeeCase model, seeded simulation. As of 17 Oct 2026.
Read one more paragraph, 83 words
Size is the lever. Keep every input and change only the share risked, and the chance of touching that loss changes from 9.9% at two percent a trade to 48.3% at five percent and 78.2% at ten percent. At seven percent a trade, about the Kelly size, it is 64.1%. [Kelly and sizing for option strategies](/learn/path-17/module-17-22-kelly-sizing) takes that up. A strategy is its odds and its size together, and a Monte Carlo that holds only one of them tells half the story.

## The common mistake

The belief: I ran ten thousand Monte Carlo paths on my backtest, so I know my worst case. Ten thousand paths remove sampling noise and add no information. They draw again from the same trades, in a different order, and a sample without a bad week will never produce one. The worst case of a short option strategy sits outside the sample, in a week the data may not hold. Read a Monte Carlo drawdown as a floor on the risk, not a ceiling. Check what the trades came from, whether the backtest was clean, how many trades there are and what the sizing assumes. SEBI allows only registered advisers, research analysts and empanelled algo providers to state past performance, and only as risk and return figures verified by a recognised agency. A simulated range on a screenshot is not that.

## Key takeaways

* Monte Carlo shows the spread of paths the same odds could make.
* A bootstrap resamples your own trades and keeps their fat tails.
* Trade order changes the drawdown, not the compounded end value.
* Quote paths, seed and standard error with any simulated figure.
* A resample cannot draw a loss the sample does not hold.
* Read a simulated drawdown as a floor on the risk.

**Before you trade.** Derivatives trading carries a high risk of loss. SEBI's study "Profitability of Individual Traders in the Equity Derivatives Segment (FY25 to FY26)" (August 2026) found that 87.7% of individual traders in equity F&O made net losses in FY26, with aggregate net losses of Rs 91,685 crore. [Read the SEBI study](https://www.sebi.gov.in/reports-and-statistics/research/aug-2026/study-profitability-of-individual-traders-in-the-equity-derivatives-segment-fy25-fy26-_103835.html)

What does Monte Carlo and bootstrap of trade results cover?Replay the same trades in a different order and the worst fall moves. A resample still cannot show a loss it never held. It works through The idea, plainly, Worked example: one edge, many paths, The common mistake, Key takeaways. It is module 19.8 of Path 19, Algo, HFT and Backtesting, about 10 minutes of reading, free.

TTry it

## Risk of ruin, on the same example.
Win rate, payoff and size, simulated to the chance of losing the account. Dated NSE end of day data, nothing live, no orders.

**Risk of ruin**.

[Open the risk of ruin](/learn/tools/risk-of-ruin?preset=low-win-big)

  AF&O on RupeeCase

## Hedging only, in development
F&O at RupeeCase will do one job: protect a portfolio you already own, by a rule published before it runs. No speculation, no naked option selling, no leveraged bets. It is not available yet.

  [How hedging will work](/hedging)[Sign up for RupeeCase](https://invest.rupeecase.com/signup)

  [No hedgeFalls with the marketWith a putA floor, for a premiumIllustration with made up numbers, not a product and not a recommendation.](/hedging)

QQuick check

## 10 questions, 7 to pass.
Each attempt draws 10 of the 15 questions in this module's bank, and a retake draws a fresh set. A pass gives this module's Certificate of Completion. Your result stays on this device and counts towards the Path 19 certificate.

7 of 10 correct passes module 19.8

Every answer is explained when you check; a retake is always free. Source: RupeeCase Learn quiz rules (70% to pass).

  Passed

###

  Certificate ID

Download PNGPrint or save as PDF[Check the ID](/learn/certificates/verify)
Self paced and unproctored. A record of completing free education by RupeeCase; not a NISM certificate and not endorsed by NISM, NSE, BSE or SEBI. It qualifies no one to deal, advise or publish research.

CCheck yourself

## Path 19 so far.
Your quick check results on this device, stop by stop.

Stop 8 of 16 on Path 19

Algo, HFT and Backtesting: every live stop, this module ringed. Source: RupeeCase Learn, Path 19.

1. [19.1What a backtest is, and five biases that ruin itNot yet](/learn/path-19/module-19-1-backtest-biases)
2. [19.2Strategy metrics: CAGR, Sharpe, Sortino, drawdown and expectancyNot yet](/learn/path-19/module-19-2-strategy-metrics)
3. [19.3HFT, MFT and LFT comparedNot yet](/learn/path-19/module-19-3-hft-mft-lft)
4. [19.4Colocation, latency and fairness: NSE's historyNot yet](/learn/path-19/module-19-4-colocation-and-latency)
5. [19.5Building a compliant retail algoNot yet](/learn/path-19/module-19-5-building-a-compliant-algo)
6. [19.6Backtesting options on Indian dataNot yet](/learn/path-19/module-19-6-backtesting-options)
7. [19.7Walk forward and out of sample testingNot yet](/learn/path-19/module-19-7-walk-forward-testing)
8. [19.8Monte Carlo and bootstrap of trade resultsNot yet](/learn/path-19/module-19-8-monte-carlo-and-bootstrap#quiz)
9. [19.9Microstructure models: spreads, informed trading and price impactNot yet](/learn/path-19/module-19-9-microstructure-models)
10. [19.10Market making: inventory and quotingNot yet](/learn/path-19/module-19-10-market-making)
11. [19.11Optimal execution and market impactNot yet](/learn/path-19/module-19-11-optimal-execution)
12. [19.12HFT economics and the latency raceNot yet](/learn/path-19/module-19-12-hft-economics)
13. [19.13Backtest overfitting: deflated Sharpe, PBO and multiple testingNot yet](/learn/path-19/module-19-13-backtest-overfitting)
14. [19.14Financial machine learning done carefullyNot yet](/learn/path-19/module-19-14-financial-machine-learning)
15. [19.15Expiry day market integrity: a SEBI interim order, FutEq limits and surveillanceNot yet](/learn/path-19/module-19-15-expiry-day-market-integrity)
16. [19.16Capstone: a research note on an Indian derivatives questionNot yet](/learn/path-19/module-19-16-capstone-research-note)
17. [TPath test, 30 questionsNot yet](/learn/path-19/module-19-16-capstone-research-note#pathTestSection)

Path 19 in reading time: 172 minutes over 16 modules

Minutes of reading per module, this one in amber. Source: RupeeCase Learn, Path 19.

    Explore next

## Put the module to work.

* [ToolOption payoff builderLegs on a dated Nifty chain, breakevens and charges](/learn/tools/payoff-builder)
* [Free module 12.7Position sizing and risk of ruin for F&O beginners8 min read](/learn/path-12/module-12-7-position-sizing-and-risk-of-ruin)
* [Free module 19.1What a backtest is, and five biases that ruin it9 min read](/learn/path-19/module-19-1-backtest-biases)
* [Free module 19.2Strategy metrics: CAGR, Sharpe, Sortino, drawdown and expectancy9 min read](/learn/path-19/module-19-2-strategy-metrics)
* [Free module 19.6Backtesting options on Indian data11 min read](/learn/path-19/module-19-6-backtesting-options)
* [Free module 19.7Walk forward and out of sample testing10 min read](/learn/path-19/module-19-7-walk-forward-testing)

      Community

## Join my WhatsApp group.

      Scan the code, fillFill one short form, and join my WhatsApp group. Slides, sources, factsheets and the rebalance logs live there, and members join a daily Google Meet with me.

      New to RupeeCase? [Getting started](/getting-started) [See the terminal](/terminal)

        [Sign up for RupeeCase](https://invest.rupeecase.com/signup)
        [Join the WhatsApp group](https://forms.gle/C6HMtM1Z2GfeocQV7)

      [One form, one group](https://forms.gle/C6HMtM1Z2GfeocQV7)Scan with your phone camera

SSources

## Go to the source.
4 sources, SEBI the most cited

The publisher of each source listed below. Source: Module 19.8 source list.
1. [NSE, derivatives reports and daily end of day files](https://www.nseindia.com/all-reports-derivatives) NSE
2. [SEBI, Profitability of Individual Traders in the Equity Derivatives Segment, FY25 to FY26 (August 2026)](https://www.sebi.gov.in/reports-and-statistics/research/aug-2026/study-profitability-of-individual-traders-in-the-equity-derivatives-segment-fy25-fy26-_103835.html) SEBI
3. [SEBI, circular of 3 August 2026, enrolment with PaRRVA for verified past performance](https://www.sebi.gov.in/legal/circulars/aug-2026/extension-of-timeline-for-enrolment-with-parrva-as-specified-in-sebi-circular-no-ho-38-14-4-2026-mirsd-pod-i-10557-2026-dated-april-29-2026_103314.html) SEBI
4. [Efron, B., Bootstrap Methods: Another Look at the Jackknife, Annals of Statistics, 1979](https://doi.org/10.1214/aos/1176344552) Paper

GTerms

## 4 terms from this module.
Monte CarloSimulating many paths from a stated recipe with seeded random draws, to read the spread of outcomes rather than one result.
BootstrapResampling the strategy's own trades with replacement to build new lists of the same length. It keeps the trade sizes of the sample and nothing outside it.
Standard errorThe sampling noise of a simulated estimate. For a share of paths it falls with the square root of the number of paths.
SeedThe starting value of a random sequence. The same seed and inputs reproduce the same simulation.
[All 230 terms in the glossary](/learn/glossary)

[Question people askHow do I use Monte Carlo to test strategy risk?A short answer with a dated chart](/learn/questions/monte-carlo-strategy-risk)[Related module12.7 Position sizing and risk of ruin for F&O beginners8 min, Beginner](/learn/path-12/module-12-7-position-sizing-and-risk-of-ruin)[Related module19.1 What a backtest is, and five biases that ruin it9 min, Intermediate](/learn/path-19/module-19-1-backtest-biases)[Pillar guideDerivatives and Quant115 modules across paths 12 to 19](/learn/derivatives)

Education only, not investment advice, a research report or a recommendation to buy, sell or hold any security. RupeeCase (QC Alpha Technologies Pvt Ltd) is not registered with SEBI as an investment adviser or research analyst. Contracts and prices shown are for illustration only, come from NSE end of day files at least 30 days old, and are not recommendatory. Derivatives trading carries a high risk of loss.
