Strategy

A Thousand Bootstrap Runs of One Backtest Still Count as One Sample

A TradingView analysis argues that a thousand bootstrap simulations on one backtest still count as one sample. Resampling measures stability, not edge, and inherits every bias baked into the trade list.

By Daniel Okafor

3 min read

A thousand runs of the same trades is still one sample
A thousand runs of the same trades is still one sampleAustin Hervias / unsplash

What's News

  • A report of a thousand bootstrap simulations, 95% profitable, still represents one backtest re-dealt a thousand times, per TradingView analyst harrell.jordon.
  • The bootstrap mean lands on the sample mean almost always, so 'most simulations profitable' restates the original result with error bars.
  • Resampling inherits selection bias from any parameter nudged, filter added or window trimmed after seeing the data.
  • Honest bootstrap questions include interval width on expectancy, reliance on the largest winners, and sensitivity to removing one trade.
  • Only unseen data — a later period, a different instrument, or a pre-committed forward record — can test whether a rule has an edge.

A backtest report showing a thousand bootstrap simulations, ninety-five per cent of them profitable, reads like a thousand independent confirmations. It is one backtest re-dealt a thousand times, and the difference between those two readings is the whole argument made by TradingView analyst harrell.jordon in a note published on the Bitcoin / US Dollar (COINBASE:BTCUSD) chart.

The piece dissects a common statistical procedure in algorithmic trading. It shows what the bootstrap measures, what it cannot measure, and why the output looks more convincing than it is.

How the bootstrap works on a trade list

The mechanics are simple. You take the closed trades a rule produced. You draw from that list with replacement until you have a list of the same length. You rebuild the statistic you care about. You repeat the process a thousand times. The result is a distribution, and from the distribution you read an interval.

The author spells out the key constraint:

"No new bar. No new trade. No regime the rule did not already trade through."

The population being sampled from is the sample itself. The procedure answers exactly one question: how much the statistic moves when the trades you already have are reshuffled and reweighted.

Why the bootstrap cannot test for edge

The question the report implies is whether the rule has an edge. A bootstrap cannot reach that conclusion, and the reason is not arithmetic. If the rule was chosen after looking at the data — a parameter nudged, a filter added, an instrument switched, a window trimmed — the selection is already baked into the trade list. Every resample inherits it.

The author's comparison is blunt: "Shuffling a biased sample a thousand times gives you a very precise measurement of the bias."

This matters because most published strategies are tuned after the fact. The trade list reflects those choices. Resampling it repeatedly adds precision, not independence.

The giveaway nobody reads as a giveaway

The diagnostic sits in the output itself. The bootstrap mean lands on the sample mean, near enough always, because that is what resampling does.

So a claim like "most of the simulations were profitable" on a sample that was already profitable is not a second opinion. The author calls it "the first opinion restated with error bars."

The number 95 per cent, in other words, describes the width of a distribution around a result already known. It does not describe the odds the strategy works.

What the technique is actually good for

The note does not dismiss the bootstrap. It lists the questions the method answers honestly:

  • How wide the interval on expectancy is, given these specific trades.
  • How much of the profit factor rests on the largest handful of winners.
  • Whether removing one trade moves the answer.

The author's verdict on these uses: "Those are honest bootstrap questions, and the answers are often sobering enough on their own."

What actually answers the edge question

The alternative is data the rule has not seen. The author names three sources: a later period, a different instrument, and a forward record kept under rules written in advance.

Before any of that, the trade count matters. The count is what sets the width of any interval in the first place, and, in the author's words, "no amount of resampling manufactures sample size."

The one question to ask

The note closes with a compact test for any simulation report: "when you meet a thousand simulations, ask one thing: which trades did they run on?"

If the answer is the trades in the backtest, the reader has been shown the same result a thousand times.

The author adds two caveats. The piece describes method and arithmetic, not a trading result of the author's own. Nothing in it is investment advice. For strategy developers and investors screening trading systems, the practical takeaway is to treat bootstrap confidence intervals as a measure of internal stability, and to demand out-of-sample or forward-tested evidence before crediting a strategy with an edge.

Source: tradingview.com

Share this article:

More from Daniel Okafor

Daniel Okafor

Show full bio

Correspondent covering money, funding and market shifts around entrepreneurship, startups and venture funding at Business Bearings.

2,807 articles

Related articles

« Previous article