Lewati ke konten
pipdojo.com

Meja belajar

Progres Anda

Sabuk putih · Sabuk saat ini

Pelajaran
0/25
Hari beruntun
0
XP
0
Pelajaran berikutnyaApa itu pip?

Rentetan hari dan XP, hanya tersimpan di perangkat ini

Bahasa belajar

Halaman beralih ke bahasa ini; progres Anda tetap tersimpan di perangkat ini.

Pelajaran 14 dari 26Sabuk cokelat#39 dari 55 di sekolah

Monte Carlo Testing: Understanding the Range of Possible Trading Outcomes

Monte Carlo testing resamples historical trades to estimate the range of possible equity curves, drawdowns and losing streaks; it is a planning tool, not a prediction.

8 menit baca·Strategi & Jurnal·4 pertanyaan kuis di akhir

Monte Carlo testing is a way to examine uncertainty by generating many alternative versions of a historical result. An R-multiple expresses a trade's result as a multiple of the risk taken: +2R means a gain of twice the risk, and -1R means a loss of one risk unit. A backtest gives one equity curve, which is the running account balance after each trade, but it is only one sequence of outcomes. If you rearrange the same winning and losing trades, the cumulative R changes order, so the path changes. Drawdown is the fall from an equity peak to a later trough; a losing streak is a run of consecutive losses. Because peaks and troughs arrive in a different order, the same collection of trades can produce different drawdowns and losing streaks. Monte Carlo testing differs from ordinary backtesting: a backtest reports what happened in one historical order, while Monte Carlo testing repeatedly shuffles or resamples the recorded trades to show a range of possible paths under a defined model.

Consider a hypothetical EUR/USD strategy with 10 trades: six winners at +2R and four losers at -1R. The net result is (6 × +2R) + (4 × -1R) = +12R - 4R = +8R. Assume a $10,000 account and fixed dollar risk of $100 per trade, which is 1% of the starting equity. Then +2R equals +$200 and -1R equals -$100. Under fixed-dollar risk, the final balance is $10,000 + ($100 × 8) = $10,800 regardless of order. Sequence A has six wins followed by four losses. Its equity path is $10,200, $10,400, $10,600, $10,800, $11,000, $11,200, $11,100, $11,000, $10,900, $10,800. The maximum drawdown is $11,200 - $10,800 = $400, or $400 ÷ $11,200 = 3.57% from the peak. Sequence B has four losses first: $9,900, $9,800, $9,700, $9,600, $9,800, $10,000, $10,200, $10,400, $10,600, $10,800. Its maximum drawdown is $10,000 - $9,600 = $400, or 4.0% from the peak. Sequence C alternates loss, win, loss, win, loss, win, loss, win, win, win: $9,900, $10,100, $10,000, $10,200, $10,100, $10,300, $10,200, $10,400, $10,600, $10,800. Its maximum drawdown is only $100, and its longest losing streak is one. Same trades, same final R, different path.

A Monte Carlo simulation can generate many alternative sequences from this sample. In a pure shuffle, the set of trades is fixed and only the order changes; with six identical winners and four identical losers, there are 10! ÷ (6! × 4!) = 210 distinct win/loss orderings. A simulation may sample many of those orderings and compute, for each one, the equity curve, maximum drawdown, longest losing streak and ending equity. A pure shuffle changes the equity path, drawdowns and potentially losing streaks, but it does not change final equity under fixed-dollar risk or under a constant percentage of current equity, assuming the same fixed set of R-multiples and consistent position-sizing rules; with percentage-of-equity risk, the order of the percentage gains and losses changes the path, but multiplying the same set of account factors in a different order gives the same final balance. If the method instead resamples trades with replacement, as in the bootstrap described by the NIST handbook, the resampled set can contain a different mix of results, so bootstrap resampling with replacement can change ending equity because it may select a different mix of winning and losing trades. A hypothetical resample with seven winners and three losers gives +14R - 3R = +11R, or $11,100 under the same $100 risk; a resample with four winners and six losers gives +8R - 6R = +2R, or $10,200. The output is a distribution, not a single forecast: a median simulated drawdown, a range of drawdowns, a range of losing streaks and a range of ending balances. The worst simulated drawdown is one outcome in the model, not the maximum possible future drawdown.

A backtest is one path through your trades; Monte Carlo testing shows you the neighbourhood of paths, not the destination.

Practically, use Monte Carlo testing to ask whether a strategy's historical performance is highly dependent on trade order. If one shuffle produces a small drawdown and another produces a much larger one, the account path is order-sensitive, and you should plan for the less comfortable paths. Use the simulated drawdown range to set realistic expectations and compare risk settings on the same historical trades. In the example above, Sequence B at 1% risk ($100 per R) has a $400 drawdown; at 2% risk ($200 per R) the same four-loss start produces -4R × $200 = -$800, so a $10,000 account falls to $9,200, an 8% drawdown. The six later wins would add 6 × $400 = $2,400, ending at $11,600. The larger risk doubles the dollar drawdown in this fixed-risk example and makes the losing streak harder to survive, so it may be too aggressive. Monte Carlo output also helps you prepare psychologically for losing streaks and for the range of equity curves before forward testing. It supplements ordinary backtesting; it does not replace it and does not predict the exact outcome of future trades.

Monte Carlo testing has important limits. It does not prove that a strategy has a genuine edge; it only describes the variability of the historical sample under the chosen resampling model. It cannot correct poor-quality data, missing trades, look-ahead bias or unrealistic backtesting assumptions. Randomly shuffling trade outcomes assumes the sampled trades are sufficiently representative of the strategy being tested. Ordinary shuffling can ignore changing market regimes, volatility clustering and dependencies between trades; if outcomes are not independent, the resampling method must be chosen carefully. A small historical sample may produce misleading results because a few unusual trades can dominate the simulated distribution. Include transaction costs, spreads, commissions, slippage and swap in the historical results where relevant, because simulations will otherwise examine a cleaner and less realistic strategy. Simulated outcomes are not guaranteed future outcomes, and you should not describe the worst simulated drawdown as the maximum possible future drawdown. Treat the simulation as a planning and risk-assessment tool, not as evidence of future profitability.

Keep a simulation journal entry before you run the test. Record the historical trade results in R, the number of trades in the sample, the initial account equity, the risk per trade, the trading costs included, the resampling method and the number of simulations. For example: 10 trades, six at +2R and four at -1R; $10,000 initial equity; fixed $100 risk per trade; costs included; shuffle without replacement; 1,000 simulations. After the run, record the simulated median and range of maximum drawdown, longest losing streak and ending equity. Interpret those figures as properties of the model you specified, not as guarantees or as a prediction of EUR/USD direction. Compare the simulated drawdown range with your risk tolerance, and if the uncomfortable outcomes are too severe, reduce risk per trade or improve the sample before forward testing.

Poin penting

Use Monte Carlo testing to see how trade order and resampling change drawdowns and streaks, compare risk settings, and prepare for a range of outcomes, while remembering that simulated results are not guarantees.

Akhir pelajaran

Uji diri Anda

0/4 Terjawab

Beberapa pertanyaan tentang apa yang baru saja Anda baca. Jawab sebelum melanjutkan — mengingat kembali itulah yang membuat pelajaran melekat.

Pertanyaan 1What is the main purpose of Monte Carlo testing a trading strategy's historical trades?
Pilih jawaban, lalu periksa.
Pertanyaan 2Why can the same set of winning and losing trades produce different maximum drawdowns?
Pilih jawaban, lalu periksa.
Pertanyaan 3How should a simulated 95th-percentile drawdown be interpreted?
Pilih jawaban, lalu periksa.
Pertanyaan 4Which is an important limitation of Monte Carlo testing?
Pilih jawaban, lalu periksa.
Ikuti seluruh sabuk cokelat kuis →