All posts

Backtesting7 min read

Should Your Trading Monte Carlo Preserve Losing Streaks?

Compare independent-trade and block bootstrap Monte Carlo methods, inspect outcome clustering, and document a practical block-length sensitivity check.

By TerraTrade Team

Abstract chart contrasting consecutive blocks of trading outcomes with independently sampled points.

If your strategy’s outcomes may be related to nearby outcomes, compare independent-trade resampling with a block bootstrap. Independent draws break the original order; block draws keep the order within sampled runs of consecutive observations, while joins between blocks can still break the historical sequence. Block resampling is not automatically better: it is a way to test how conclusions change when local dependence is retained. Inspect the chronological data, choose and document a reasonable range of block lengths, and compare both methods using the same outcomes and evaluation rules. Treat a difference between them as a modeling sensitivity—not as proof about future performance.

What the two methods preserve#

A bootstrap builds many resampled sequences from observed data. It does not create new market history; it rearranges or repeats observations under a chosen sampling rule. The rule matters because the input sequence may contain relationships between neighboring observations.

The stationary bootstrap is an established dependent-observation method that uses geometrically distributed block lengths. Block bootstrap methods have been developed for inference with stationary observations under specified assumptions; their use does not demonstrate that a particular trading record is stationary or that any chosen block length is correct. The Stationary Bootstrap The Jackknife and the Bootstrap for General Stationary Observations

MethodWhat it samplesWhat happens to local orderMain modeling question
Independent-trade bootstrapOne observation at a time, with replacement.Original adjacency is broken. A winning trade can be followed by any sampled trade, whether or not that pairing occurred historically.Is treating each trade as exchangeable and independent a useful simplifying assumption?
Fixed-length block bootstrapConsecutive runs of a selected length, sampled with replacement.Order and relationships within each sampled block remain; relationships at the joins between blocks are generally broken.What block length could retain meaningful short-range dependence without making the resamples too repetitive?
Stationary bootstrapConsecutive runs whose lengths vary randomly, with a chosen average length.Within-run order is retained, but a new run can begin at a sampled location.Would variable block lengths be a useful alternative sensitivity case?

Check whether order may matter#

Start by defining what one observation represents. “Trade” may be reasonable for a sequence of completed, non-overlapping trades. If positions overlap, several trades share the same market interval, or the strategy’s exposure persists across observations, a trade-by-trade list might not represent the dependence you care about. Consider whether a time-based return series better captures the process, and state the choice and its limitations.

Use the original sequence for these checks. They can reveal patterns worth testing, but they do not prove dependence, establish stationarity, or show that a pattern will continue. Dependent-data bootstrap methods rely on assumptions; a short or changing record can make those assumptions difficult to assess. The Stationary Bootstrap The Jackknife and the Bootstrap for General Stationary Observations

  • Plot outcomes in chronological order. Mark dates, strategy changes, and long gaps so a pattern is not hidden by a sorted or shuffled view.
  • Inspect outcome signs and magnitudes separately. Repeated losses concern sign clustering; unusually large or small outcomes may cluster in magnitude even when wins and losses alternate.
  • Summarize observed run lengths and compare the frequency of a loss after a loss with the frequency of a loss after a win. Treat these as descriptive summaries, especially when the sample is small.
  • Inspect autocorrelation at relevant lags for raw returns and, where useful, absolute or squared returns. Dependence in variability can differ from dependence in direction.
  • Record sample length, instruments, market periods, and changes in rules or execution. A pattern across unlike periods may not describe a stable process.

Choose a block length you can explain#

There is no universally correct block length for every strategy or sample. A block that is too short can discard dependence that extends beyond it; a block that is too long leaves fewer distinct chunks to recombine and can make resamples less varied. This is a known block-length trade-off, not a reason to select whichever length gives the preferred result. https://public.econ.duke.edu/~ap172/Politis_White_2004.pdf

A practical worksheet should leave an audit trail:

  1. Write down the unit being resampled and the dependence pattern you want the blocks to retain—for example, nearby trade outcomes or daily strategy returns.
  2. Use the chronological diagnostics to propose a defensible primary length. State the reasoning, such as a lag range you inspected or the typical span of the process being represented. Do not infer a universal length from one streak.
  3. Choose shorter and longer alternatives for a sensitivity check before comparing performance summaries. The purpose is to see whether conclusions change across plausible assumptions, not to optimize the block length for a favorable result.
  4. For a stationary bootstrap, document the average block length and implementation choices. Its blocks vary in length, so the parameter is not a fixed run size. The Stationary Bootstrap
  5. Record the sample length and how partial blocks, sequence ends, and block joins are handled. Keep those implementation rules consistent across runs.

Compare both methods fairly#

The comparison only isolates the resampling assumption if the historical outcomes and all other analysis choices stay fixed. Do not change costs, filters, trade definitions, or the evaluation window between methods.

  1. Freeze the historical input: the same ordered, net-of-cost outcomes, observation unit, exclusions, and sample window for both methods.
  2. Keep the simulated sequence length and analysis statistic identical. If you calculate a metric on each resample, apply the same rule in both cases.
  3. Generate independent-trade resamples and block resamples at the documented primary length and sensitivity lengths. Record the random seed and software or implementation settings so the experiment can be reproduced.
  4. Compare the resulting distributions and note which aspects move: for example, observed run-length summaries or a chosen path statistic. Explain what each metric measures rather than treating the two distributions as forecasts.
  5. Report the independent result, each block result, and the chosen interpretation together. If the methods differ, state that the conclusion is sensitive to the dependence assumption.

If results are similar, the selected summaries may be relatively insensitive to the resampling rule in this experiment. That does not prove independence. If block resampling produces more clustered paths or different summaries, that indicates the chosen block method retained structure that independent draws removed; it does not prove the structure will persist. Results can also depend on the chosen block length and on whether the observed record is representative. Methods for dependent observations have conditions and tuning choices, not guarantees for an individual trading record. https://public.econ.duke.edu/~ap172/Politis_White_2004.pdf The Jackknife and the Bootstrap for General Stationary Observations

Use the comparison as a robustness check on the resampling assumption, not as a contest to find a method that makes a strategy look safer.

Strengths and limitations

What the comparison offers

  • ✓Independent resampling is a clear baseline that shows the effect of breaking adjacency.
  • ✓Block resampling can retain within-block order and local dependence.
  • ✓A side-by-side sensitivity check makes the modeling assumption visible.

Limitations

  • —Block resampling depends on a defensible observation unit and block-length choice.
  • —Neither method repairs a short, biased, or changing historical sample.
  • —Resampled sequences are not independent evidence about future market regimes.

Frequently asked questions#

Should I always use a block bootstrap for trading outcomes?

Not automatically. If outcomes may depend on nearby observations, block resampling is a useful comparison because it retains within-block order. Check the sequence, document block length, and report independent resampling as a baseline. The Stationary Bootstrap The Jackknife and the Bootstrap for General Stationary Observations

Does block resampling keep every losing streak?

Not necessarily. It preserves order inside sampled blocks, but boundaries between blocks can break historical relationships. A streak that crosses a boundary may not remain intact.

How do I know what block length to choose?

There is no single length that applies to every record. Explain the primary choice using your observation unit and dependence checks, then show how shorter and longer reasonable choices affect the comparison. Block length trades off retained dependence against the number and variety of blocks. https://public.econ.duke.edu/~ap172/Politis_White_2004.pdf

If both methods give similar results, does that prove trades are independent?

No. Similar outputs mean the selected summaries were similar under those tested assumptions and inputs; they do not prove independence or predict future outcomes.

Make dependence an explicit assumption#

The useful question is not whether blocks are always superior. It is whether your ordered outcomes contain dependence that an independent-trade bootstrap would erase. Check the sequence, define the observation unit, document a block-length rationale and sensitivity range, then compare both approaches on the same historical outcomes. Make the assumption—and any sensitivity to it—part of the result.

Sources#

Your journal writes posts like this about you.

Connect a broker and TerraTrade turns your own trades into the findings that matter.