CFDs and forex are complex instruments and come with a high risk of losing money rapidly due to leverage. Risk disclosure

Monte Carlo simulation

A plain definition of the Monte Carlo method, a worked trading example without real figures, and the points experienced traders should keep in mind.

Extrade Pakistan editorial team ·

On this page
  1. What is Monte Carlo simulation?
  2. Formal definition
  3. Monte Carlo in trading: a worked example
  4. Where you meet the term
  5. Limits and edge cases
  6. Related terms
  7. Frequent questions

What is Monte Carlo simulation?

A Monte Carlo simulation estimates the likely range of outcomes of an uncertain process by running it many times with random inputs and studying the spread of results.

The name comes from the casino district in Monaco, because the method relies on chance, like a roulette wheel. It is used in physics, engineering, finance and trading.

start1% per tradeDD −9%2% per tradeDD −17%5% per tradeDD −41%10% per tradeDD −72%100 identical trades, 40% wins, reward 1.5 × risk
The same sequence of trades at different risk per trade. With zero expectancy, higher risk does not add profit; it only deepens the drawdowns (DD). Illustrative example: made-up numbers for learning, not real prices or a broker's conditions.

Formal definition

The Monte Carlo method estimates a quantity, usually the expected value or the distribution of some function of random variables, by drawing random samples from an assumed probability distribution, computing the result for each draw and aggregating the results.

Monte Carlo in trading: a worked example

This is a hypothetical case with no real figures.

A trader backtests a strategy and gets a list of closed trades. Each result is measured in "R", meaning the trade's profit or loss divided by the amount risked on it. The backtest shows a single equity curve: one particular order of wins and losses.

The Monte Carlo approach:

  1. Take the list of trade results.
  2. Build a new sequence by drawing trades at random from the list, either reshuffling them or resampling with replacement (bootstrapping).
  3. Draw the equity curve for that sequence and record its final result and its maximum drawdown, which is the largest fall from a peak.
  4. Repeat many times.
  5. Look at the distribution: the typical drawdown, the worst drawdowns, and how often the account falls below a chosen level.

The trader usually finds that the original backtest curve was not the worst case. Some random orderings produce long losing streaks and much deeper drawdowns. This helps set position size and expectations. Use the calculators to see what a given drawdown means in money for a chosen lot size.

Where you meet the term

Limits and edge cases

Leveraged forex and CFD trading can lose money fast. A simulation describes possibilities, not a guarantee, and it does not remove that risk.

Frequent questions

What is the difference between a backtest and a Monte Carlo simulation?

A backtest shows the single path a strategy took on past data. A Monte Carlo simulation reshuffles or resamples those results to show many possible paths.

Does Monte Carlo trading predict profit?

No. It estimates a range of outcomes under the assumptions you feed in. It does not forecast prices.

How many runs are enough?

There is no fixed count. Run it until the key outputs, such as the worst drawdowns, stop changing noticeably when you add more runs.

Is the Monte Carlo method only for experts?

The idea is simple: repeat a random experiment many times and look at the spread. A spreadsheet can do a basic version, but interpreting the result needs care.

Related pages