Video summary

How To: Monte Carlo Simulation

Main summary

Key takeaways

Educational

Main ideas / lessons conveyed

  • Backtesting results are not reliable outcomes, but one realization of randomness.

    • A single backtest is treated as one possible “path” generated by a stochastic process.
    • Because markets are path-dependent, the order of trades matters, even if the set of trade returns comes from the same underlying distribution.
  • A strategy that looks profitable in a backtest can fail in live trading due to path dependence.

    • The speaker highlights a common retail failure mode: blaming psychology/discipline while misunderstanding path dependence.
    • Monte Carlo would show the strategy’s “edge” can be fragile, with outcomes ranging widely (including drawdowns and negative average performance).
  • Monte Carlo simulation answers probability questions that lack closed-form analytic solutions.

    • By generating many alternate realities (“many possible equity paths”), you can estimate:
      • distributions of terminal P&L
      • maximum drawdown distributions
      • run-up distributions
      • overall risk and robustness of the strategy’s edge
    • The same idea applies beyond trading, such as:
      • path-dependent options pricing (e.g., Asian options)
      • prop firm / funded account challenges, modeled like structured products (probability of passing, payout size, expected payout, etc.)
  • Three Monte Carlo approaches are taught, all focused on resampling backtest trade outcomes to build alternate equity paths.

    • The through line is: construct alternate equity realities to quantify path dependence and uncertainty.

Methodology / instruction-style content (detailed)

0) Core setup: what Monte Carlo is doing conceptually

  • Start with your backtest trade log/file (a sequence of trades with outcomes).
  • Treat your backtest as one sample path from a larger distribution of possible outcomes.
  • Repeatedly generate many alternate equity paths by resampling trades.
  • Use the ensemble of equity curves to compute percentiles, probability distributions, and confidence intervals.

1) Basic Reshuffling Monte Carlo (resample with replacement)

Goal: Measure how trade ordering luck alone can change equity curves, drawdowns, and ending balance.

  • Collect the distribution of individual trade returns from the backtest.
    • Example described: -2.8%, 3.3%, 2.8%, ...
  • For each simulated equity path:
    • Build a new trade sequence by repeatedly:
      • sampling one trade return at a time
      • drawing with replacement (a sampled trade return can appear again later)
    • Continue until you have a full path of the same number of trades as the original backtest.
  • Repeat many times:
    • thousands / tens of thousands / hundreds of thousands (as described)
  • Analyze results across all resampled paths:
    • compute drawdown distribution percentiles
    • compute ending account balance distribution
    • estimate how often simulated max drawdown is worse/better than the original backtest path
  • Important property emphasized:
    • The resampled paths use the same underlying trade distribution (same win rate/variance/mean, etc.),
    • but the order changes, producing wildly different equity paths due to path dependence.
  • Limitation acknowledged:
    • This method assumes trade ordering is effectively random, which may not be true.

2) Regime Switching Monte Carlo (resample conditional on market regimes)

Goal: Preserve clustered behavior of trade outcomes across different market regimes, and model regime transitions.

  • Step 1: Define a regime classification rule/algorithm

    • Add a regime tag for every trade in the backtest.
    • Example with two regimes:
      • calm & trending
      • choppy & volatile
    • In practice: use a feature-based method to tag each trade.
  • Step 2: Split trades into separate distributions by regime

    • Create separate sets:
      • returns of trades tagged “calm”
      • returns of trades tagged “volatile”
    • (Generalizes to more than two regimes.)
  • Step 3: Compute regime transition probabilities from the original backtest

    • Examine the sequence of regime tags trade-to-trade in the original file.
    • Count transitions, e.g.:
      • calm → calm
      • calm → volatile
      • volatile → calm
      • volatile → volatile
    • Convert counts to a transition matrix of probabilities:
      • probability of staying in the same regime
      • probability of switching regimes
  • Step 4: Generate regime-aware resampled equity paths

    • Choose an initial regime at random using the implied/defined probabilities.
    • For each next trade in the simulated path:
      • sample the trade return from the current regime’s trade distribution
      • use the transition matrix to decide whether the next trade stays in the same regime or switches
      • append the sampled result and repeat
  • Step 5: Repeat many times

    • thousands / tens of thousands / hundreds of thousands (and even “millions” mentioned)
    • to create many regime-aware equity curves
  • Why this helps (stated):

    • It preserves the “clustering structure” of returns that occurs because strategies often behave differently across regimes.
  • Additional note:

    • Transition probabilities can be estimated using a longer dataset for the same asset to improve reliability.

3) Parametric Monte Carlo (handle unobserved “fat tail” outcomes)

Goal: Go beyond the empirical discrete set of observed trade returns by fitting a continuous distribution that includes tails.

  • Step 1: Recognize empirical distributions may be “discrete” and miss extremes

    • Backtest data might not contain worst-case outcomes that can still occur in reality (fat tails).
  • Step 2: Fit a parametric distribution

    • Example distributions mentioned:
      • Normal
      • Student’s t
    • Choose a fit that accounts for tails.
  • Step 3: Sample from the fitted continuous distribution

    • Instead of resampling only observed discrete trades, draw outcomes from the fitted continuous model.
  • Caution / when not to use (explicit)

    • For retail trading, this often “does not make much sense” because:
      • stop-loss / take-profit orders prevent sustaining extreme losses implied by a continuous model
    • If the trade distribution cannot be accurately represented by a continuous distribution, the parametric approach should not be used.
  • When it can be relevant (stated)

    • It can help compute probabilities of:
      • ruin
      • extreme maximum drawdown
      • extreme maximum run-up
    • Especially when tail events may be underrepresented in observed data.

Overall conclusion / takeaway

  • Never validate a strategy using only a single backtest.
    • A backtest is one stochastic realization, and path dependence matters.
  • Monte Carlo simulation provides a probability-based view of whether an “edge” is real and robust—not just whether one historical path ended positive.
  • Practical recommendation from the video:
    • Implement Monte Carlo (reshuffling, regime switching, and appropriate use of parametric ideas) using your existing backtest data.

Speakers / sources featured

  • No other named speakers or external sources are mentioned.
  • The content is presented by a single unnamed instructor/speaker (voiceover/host teaching the three Monte Carlo methods).

Original video