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, what to do when losses come in clusters, 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, and when a block or stationary bootstrap is needed.
  2. Show that trade order changes the drawdown and leaves the end value alone, and test a trade list for clustering.
  3. Judge the number of paths, the width of a bootstrap interval and the limits of any resampled worst case.
The RupeeCase terminal on sample data: Not enough cash: what happens when funds or margin fall short?
Watch in the terminal: what happens when funds or margin fall short? 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 name goes back to Metropolis and Ulam (1949), who used random sampling to answer questions that could not be solved in closed form. 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 and the sizing from Kelly and sizing for option strategies.

Maths: why the median path grows, and when it stops

Win: account × (1 + f × b)
Loss: account × (1 − f)
g = p × ln(1 + f × b)
+ (1 − p) × ln(1 − f)

Here p is the win rate, b the payoff ratio and f the share risked. The product f times b is the gain on a win and f the loss on a loss, both as a share of the account at that moment. The number g is the average log growth of the account per trade, and after n trades the median account is close to the exponential of n times g. With p of 40%, b of 1.8 and f of 3%, g is 0.28% a trade, so 250 trades give about 1.99 times the start. The simulated median is lower, 1.84, because a path that touches the loss level of 30% stops trading and stays there. As f grows, g rises to a peak at the Kelly size, 6.7% here, and falls back to zero at about twice that, 13.3%. Past that size the median account shrinks even with a positive expectancy of 0.12 R a trade.

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. The idea is Efron's (1979). The sample is the best stand-in for the unknown population of all the trades the rule could make, so drawing from it mimics drawing a fresh sample from that population, and the spread of a statistic across the resamples estimates its spread across fresh samples. The statistic can be the mean result, the total, the drawdown or the Sharpe ratio. The result is only as good as the sample: it is a statement about these trades, not about the market they came from.

The term this section turns on: Bootstrap

The term this section turns on: BootstrapThe term this section turns on: Bootstrap. Bootstrap: Resampling 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.BootstrapResampling the strategy's own trades withreplacement to build new lists of the samelength. It keeps the trade sizes of the...
From the module glossary; every term is in the Learn glossary too. Source: Module 19.8, Monte Carlo and bootstrap of trade results.
Maths: the bootstrap, step by step

1. List the n trade results
2. Draw n of them,
each time with replacement
3. Compute the statistic
4. Repeat B times
5. Sort and read the tails

The percentiles of step 4 over the repeats are the answer. For an interval that covers the middle ninety five percent of the resamples, cut off the lowest and highest two and a half percent of the sorted statistic. 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. B sets the noise of the bootstrap itself, in the way paths set the noise of a simulation: a few thousand resamples are enough for a standard error and ten thousand for the tails of an interval.

A trade list to work on

The rest of the lesson uses one made up list of 24 weekly trades of a premium seller. Results are in loss units, where one unit is the list's average loss, so the list carries no rupees and no lot size. 18 trades won 0.4 each, 4 lost −0.5 and 2 lost −2.0. The total is 1.2, the mean 0.05 a trade, and the standard deviation 0.717. The losses are not spread evenly: they sit in trades 8 to 11 (small, big, big, small) and in one small loss each in two later weeks. That order matters below.

ResultTradesPer tradeTotal
Win180.47.2
Small loss4−0.5−2.0
Big loss2−2.0−4.0
All240.051.2
Read one more paragraph, 91 words

The win rate is 75% and the payoff ratio, the average win over the average loss, is 0.4. That is the shape of a seller of far options: many small gains and a few large losses. The standard error of the mean is the standard deviation divided by the square root of the number of trades, 0.146, so the mean is 0.34 standard errors above zero. That is nowhere near the two that a test asks for, and the bootstrap will say the same thing in its own way.

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

The same ten trades in three orders all end at the same value, but the largest fall from a peak is 2.0 percent for alternating trades, 6.9 percent for losses in two runs and 9.6 percent for five losses in a rowAlternating 2.0; Three, then two 6.9; Five in a row 9.6.Largest fall from a peak, percentAlternating2.0Three, then two6.9Five in a row9.6
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.
Read one more paragraph, 84 words

On the trade list the shuffle gives a surprise. Shuffle the 24 results 10,000 times and measure the largest fall in the running total each time. The median shuffle falls 3.0 loss units and the 95th percentile 4.5. The list as it came fell 5.0, which is above the 95th percentile of its own shuffles. Either the weeks were unlucky or the losses cluster, and the second reading matters, because a plain resample treats trades as independent and would not see it.

What if losses come in clusters?

A plain bootstrap draws single trades and so destroys any order the trades had. If a loss tends to follow a loss, because volatility stays high for weeks or because a seller keeps the same short strikes through a falling market, the resamples will show smaller drawdowns than the strategy can have. The fix is to draw blocks of consecutive trades. Künsch (1989) used blocks of one fixed length, starting anywhere in the list. Politis and Romano (1994) made the block length random, geometric with a mean of one over p, and wrapped the list into a circle, which keeps the resampled series stationary and makes the answer less sensitive to the block length. That is the stationary bootstrap.

Maths: the stationary bootstrap

Start at a random trade.
Each step, with chance p:
jump to a random trade.
Otherwise: take the next
trade, wrapping at the end.
Mean block = 1 / p

With p of one third the mean block is 3 trades. The block length has to grow with the sample but more slowly than the sample. For variance estimates the best order is the cube root of the number of trades (Hall, Horowitz and Jing, 1995), which for 24 trades is about 3. Politis and White (2004) give a rule that picks the length from the data, with a correction by Patton, Politis and White (2009). With a list this short no rule is reliable, so report the block length and show the answer at two lengths.

Keeping the clusters roughly doubles the 95th percentile fall

Largest fall in the running total of the model trade list: 5.0 for the list as it came, 3.0 and 4.5 for the median and 95th percentile of shuffles, 2.8 and 7.1 for the plain bootstrap and 4.5 and 9.3 for the stationary bootstrapList as it came 5.0; Shuffled, median 3.0; Shuffled, 95th 4.5; Bootstrap, median 2.8; Bootstrap, 95th 7.1; Block, median 4.5; Block, 95th 9.3.Largest fall in the running total, loss unitsList as it came5.0Shuffled, median3.0Shuffled, 95th4.5Bootstrap, median2.8Bootstrap, 95th7.1Block, median4.5Block, 95th9.3
Model, not market data. The 24 trade list above, 10,000 resamples each, seed 1 of the engine's generator, a mean block of 3 trades for the stationary bootstrap. The fall is measured on the running total, in loss units. Source: RupeeCase model, seeded simulation. As of 31 Oct 2026.
Read one more paragraph, 77 words

On the trade list, 10,000 stationary resamples with a mean block of 3 give a median largest fall of 4.5 loss units and a 95th percentile of 9.3. The plain bootstrap gives 2.8 and 7.1. Keeping the clusters lifts the median by 1.7 loss units and the tail by 2.2. The observed 5.0 now sits near the middle of what the block resamples produce, as it should: they were built from the same clusters.

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.

PathsSeedHit the levelError
200146.0%3.5%
200244.0%3.5%
200350.0%3.5%
20,000148.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.

Glowing teal and blue bars rising left to right over a glass floor, like a year of monthly returns

Does a bootstrap show that the edge is real?

It shows how much the mean could move with another draw of the same trades, and for a short list the answer is a lot. Across 10,000 plain resamples the mean of the trade list ran from −0.26 to 0.29 loss units in the middle ninety five percent, and from −0.35 to 0.33 with blocks. Both intervals hold zero. In 34.6% of plain resamples and 35.2% of block resamples the total was zero or less, from a list whose own total is 1.2. To see an edge of 0.05 a trade at the usual ninety five percent level with a standard deviation of 0.717 takes about 790 trades, which is 15.2 years of weekly trades. The bootstrap cannot manufacture those. It can only show how thin the 24 are.

Read one more paragraph, 96 words

One more caution comes before the bootstrap is run. If the list is the winner of many rules tried, its mean is already inflated, and resampling the winner measures the winner's luck as if it were skill. White (2000) and Romano and Wolf (2005) bootstrap the whole search. Bailey and Lopez de Prado (2014) deflate the Sharpe ratio for the number of trials, as walk forward testing works through. To compare two Sharpe ratios, Ledoit and Wolf (2008) propose a studentised block bootstrap, because the usual tests assume returns that are independent and close to normal.

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

Share of samples with no tail week for a seller of one far Nifty put: 50 percent at 20 weeks, 17 percent at 52 weeks and 3 percent at 100 weeks20 weeks 50; 52 weeks 17; 100 weeks 3.Samples with no tail week, percent20 weeks5052 weeks17100 weeks3
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.
Read one more paragraph, 125 words

The worst trade has its own arithmetic. Take any one trade in the list of 24. The chance that a resample holds it at least once is one minus the chance of missing it in every draw, 64.0%, and that tends to one minus one over e, 63.2%, as the list grows. So about two resamples in three contain the sample's worst trade, and none contains anything worse. The bootstrap of the worst loss is a spike at the sample's worst loss with no mass beyond it, while the true worst loss over a long run has a spread that reaches well past it. A sample maximum is the textbook case where the method fails, and the largest drawdown inherits the problem.

Recipe or trade list: which Monte Carlo?

The engine's recipe uses two outcomes: one win size and one loss size. The bootstrap uses the list's real spread, including the big loss that is four times the small one. The two have the same win rate, the same mean and the same Kelly size, so they differ only in the shape of the losses. Put the 30% loss level and 250 trades on both, with the compounding of the model above, and the trade list is the riskier of the two at every size.

Risk per tradeRecipe, 20,000 pathsTrade list, 20,000 draws
5%17.2%27.1%
10%47.8%59.7%

The trade list ruins more often than the recipe built from its own odds

Share of simulated paths of 250 trades that lose 30% of the account: 17 percent for the two outcome recipe and 27 percent for the trade list at 5% a trade, 48 and 60 percent at 10% a tradeRecipe, 5% a trade 17; Trade list, 5% a trade 27; Recipe, 10% a trade 48; Trade list, 10% a trade 60.Paths that lose the level, percentRecipe, 5% atrade17Trade list, 5% atrade27Recipe, 10% atrade48Trade list, 10% atrade60
Model, not market data. Win rate 75%, payoff ratio 0.4 against the average loss, 250 trades, ruin at a 30% loss, 20,000 paths, seed 1. The recipe is the engine's riskOfRuin; the trade list is drawn with replacement from the 24 results. Source: RupeeCase model, seeded simulation. As of 31 Oct 2026.
Read one more paragraph, 94 words

The table gives the share of paths that lose 30% of the account within 250 trades, with a win rate of 75% and a payoff ratio of 0.4. At the larger size the trade list loses that much on three paths in five and the recipe on fewer than half. In percent the pairs are 17 and 27 at the smaller size, and 48 and 60 at the larger. A recipe built from a win rate and an average loss understates a seller's risk whenever the losses vary, which for sellers they do.

What belongs in the list before it is resampled?

The list is the input, and a resample repeats its flaws many times over. Three things in India change the value of a past trade, and each needs restating before the draw.

  • Costs of each trade's own date. STT on a sold option was 0.10% of the premium to 31 Mar 2026 and 0.15% from 1 Apr 2026 (NSE/FATAX/73524). NSE's transaction charge on option premium moved from Rs 3,503 to Rs 3,553 per crore on 1 Mar 2026 (NSE/FA/73061). A list made of rupee results at mixed rates is a list of different games.
  • Units that survive a change of lot. The Nifty lot was 75 and became 65 for the first expiry on 6 Jan 2026 (NSE/FAOP/70616). A rupee result under one lot is 86.7% of the same trade under the other, so results go into the list as multiples of the premium or of the average loss, as above.
  • The settlement regime. Index expiries before 7 Dec 2026 settle on the index close, and from that date on the last thirty minute weighted average (SEBI circular of 15 Oct 2026). A list that mixes the two mixes two different exits.

The first matters even when it looks small. One sold lot of the 25,100 straddle of 2 Feb 2026 brought Rs 27,365 of premium. The rise in the STT rate from 0.10% to 0.15% costs Rs 13.68 on that one sale, and Rs 711 over 52 weekly sales.

The RupeeCase terminal on sample data: Charges by kind: what are brokerage, STT, GST and the platform fee?
Watch in the terminal: what are brokerage, STT, GST and the platform fee? A short tutorial on sample data.

What does the research say?

The method has a long record and a clear boundary. Efron set out the bootstrap, and Künsch and Politis and Romano extended it to dependent data. Politis and White (2004) and Patton, Politis and White (2009) made the block length a measured choice. In finance the question is whether a short, skewed sample can support a claim. Broadie, Chernov and Johannes (2009) take it up for selling index puts. The returns are skewed and the sample is short, so they judge the average return against what option pricing models would produce in samples of the same length. They report that the large average returns from writing out of the money puts are not statistically significant against such benchmarks. That is a Monte Carlo argument used as a check on a backtest, which is its most useful job.

A procedure, step by step

  1. Freeze the trade list: one line per trade, each at the rules of its own date, in loss units or multiples of the premium.
  2. Report the number of trades, the mean, the standard deviation and the standard error.
  3. Shuffle the list and set the list's own drawdown against the shuffles. A drawdown above the 95th percentile points to clustering.
  4. Run a stationary bootstrap, name the mean block length and B, and show the interval at two block lengths.
  5. Report the share of resamples with a total of zero or less, and the trades needed to see the edge.
  6. Run the recipe Monte Carlo and the trade list draw at each size under study, and quote paths, seed and error.
  7. Write down what lies outside the sample: the tail weeks, the regimes, the rule changes and the number of rules tried.

Two terms to hold on to from 19.8

Two terms to hold on to from 19.8Two terms to hold on to from 19.8. Monte Carlo: Simulating many paths from a stated recipe with seeded random draws, to read the spread of outcomes rather than one result. Standard error: The sampling noise of a simulated estimate. For a share of paths it falls with the square root of the number of paths.Monte CarloSimulating many paths from a stated recipewith seeded random draws, to read the spreadof outcomes rather than one result.Standard errorThe sampling noise of a simulated estimate.For a share of paths it falls with the squareroot of the number of paths.
From the module glossary. Source: Module 19.8, Monte Carlo and bootstrap of trade results.

Stretch: from resampling to sizing and trials

Kelly and sizing for option strategies turns the ruin figures into a sizing rule and shows why a fraction of Kelly is the usual compromise. Walk forward testing keeps the trade list honest before it is resampled, and backtest overfitting works the deflated Sharpe ratio and the probability of overfitting through on a set of trials.

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

Model, not market data. Account as a multiple of its start across 250 trades for a positive edge risked at 3 percent a trade: the median rises, the weakest twentieth ends below the start and the strongest ends several times above it5th percentile: from 1 at 0 to 0.684 at 250, high 1 at 0, low 0.684 at 238. Median: from 1 at 0 to 1.84 at 250, high 1.86 at 225, low 1 at 0. 95th percentile: from 1 at 0 to 5.87 at 250, high 5.87 at 250, low 1 at 0.5th percentileMedian95th percentile1.002.003.004.005.006.00050100150200
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

Model, not market data. Chance of losing 30 percent of the account in 250 trades by size of risk per trade, for a positive edge: it climbs from about one in ten at 2 percent to nine in ten at 15 percentRisk 2% a trade 9.9%; Risk 3% a trade 24.9%; Risk 5% a trade 48.3%; Risk 7.0% a trade 64.1%; Risk 10% a trade 78.2%; Risk 15% a trade 90.0%.Paths that hit the ruin level, percent of2,000Risk 2% a trade9.9%Risk 3% a trade24.9%Risk 5% a trade48.3%Risk 7.0% a trade64.1%Risk 10% a trade78.2%Risk 15% a trade90.0%
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, 74 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%. 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. Four specific errors follow from the belief. First, resampling in rupees across a change of lot: the same trade is 86.7% as large after the Nifty lot fell, so a mixed list overstates the older results by 15.4%. Second, one STT rate over a rate change, which costs Rs 13.68 a sale on the lot above. Third, a plain bootstrap on a list with clustered losses: the 95th percentile fall is 7.1 loss units against 9.3 with blocks, and if one loss unit is Rs 20,000, the plain figure is Rs 44,000 short. Fourth, a recipe from a win rate and an average loss: at ten percent a trade it shows 47.8% ruin where the list shows 59.7%. SEBI asks registered investment advisers and research analysts who communicate verified past performance to enrol with the Past Risk and Return Verification Agency, which began work on 4 May 2026 (SEBI circular of 3 Aug 2026). A simulated range on a screenshot is not that.

What I'd keep from this

  • 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.
  • Clustered losses need a block or stationary bootstrap.
  • Quote paths, seed and standard error with any simulated figure.
  • A resample cannot draw a loss the sample does not hold.

Where this section sits in module 19.8

Where this section sits in module 19.8Where this section sits in module 19.8. 1. The idea, plainly 2. Worked example: one edge, many paths 3. The common mistake 4. What I'd keep from this01The idea, plainly02Worked example: one edge, manypaths03The common mistake04What I'd keep from this
Sections 1 to 4 of 4; the highlighted one is next. Source: Module 19.8, Monte Carlo and bootstrap of trade results.
A navy topographic contour map whose ridge traces a rising return curve in teal

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