WOI
Market
S&P 500
7,297.07 -1.47%
Nasdaq 100
26,895.39 -2.59%
Dow Jones
50,760.79 -0.77%
VIX
21.67 +17.39%
Dollar Index (DXY)
104.97 +0.07%
Gold
3,770.90 +2.48%
Oil (WTI)
84.36 -3.02%
BTC/USD
46,186.79 +7.36%

Research & WOI Methodology · Illustrated reference

Backtesting without future information

Reconstruct what was knowable, selectable and executable at each decision.

Read, watch or explore. No exercises, scores or required progression.

In this reference
  1. A backtest is an explicit model
  2. Separate observation time from availability time
  3. Historical membership is data
  4. OHLC does not specify the intrabar path
  5. Separate development from evaluation
  6. Reconcile the simulator before interpreting returns
  7. Report the strongest claim the data support
  8. Related references
  9. Evidence and source notes

A backtest is an explicit model

A backtest applies a rule to historical inputs under a specified simulation contract. It can reveal arithmetic errors, exposure, sensitivity and hypothetical outcomes. It is not automatically a replay of actual decisions or fills. Data revisions, missing members and execution conventions determine which historical question the test can answer.

Write the signal definition, universe, data availability, order timing, fill model, costs, position constraints and valuation rules before running the experiment. A pattern name or indicator threshold alone is not a strategy. Different reasonable contracts can produce different outcomes from the same price file.

Separate observation time from availability time

A pivot high defined by two lower highs to its right is located at bar t but is not confirmed until bar t+2 completes. Plotting the marker back at t is useful for geometry. Trading at t as if confirmation already existed leaks two future observations. Store both the anchor timestamp and the time the rule first knew the pivot.

A completed daily close is known only after the relevant session ends. A rule using that close cannot assume an earlier same-session fill without an independently justified order mechanism. A weekly indicator computed from Friday’s completed candle cannot be used as Monday’s known weekly value. Revised data can also leak information if the revision was unavailable at the historical decision.

The timeline illustration uses seven synthetic bars. Bar 3 becomes a confirmed two-right-bar pivot after bar 5. The first modeled next-bar entry is bar 6. This delay is part of the rule, not an inconvenience to remove for a more attractive chart.

Synthetic bars: pivot anchor at bar 3, two-right-bar confirmation after bar 5, and a modeled next-bar entry at bar 6. Location time and availability time are different.
Synthetic bars: pivot anchor at bar 3, two-right-bar confirmation after bar 5, and a modeled next-bar entry at bar 6. Location time and availability time are different.

Historical membership is data

Survivorship bias arises when the tested set omits securities that disappeared, failed, merged or otherwise left the eligible population. Today’s constituents are not a substitute for yesterday’s universe. Selection bias can also occur when a retained dataset contains only stocks previously chosen by a screener, even if every retained stock has a long price history.

A security’s historical prices do not prove that it was eligible or observable to the strategy then. Record membership start and end times, listing status, classification and selection rules. If those records are missing, label the evaluation as a restricted cohort or diagnostic rather than claiming a complete-market replay.

A delisted member with a missing final return cannot simply disappear from the average. Preserve the missing outcome, disclose its effect and investigate a defensible valuation policy. Filling it with zero invents an outcome; deleting the whole date can remove the worst periods.

OHLC does not specify the intrabar path

If a daily high reaches a target and the daily low reaches a stop, OHLC alone cannot tell which happened first. A declared conservative collision rule can bound a simulation, but it is not an observed tick sequence. Report sensitivity to alternative ordering when material. Do not synthesize a favorable path and call it historical execution.

A gap beyond a stop should not be filled automatically at the stop reference. Limit orders may remain unfilled despite an apparent touch when queue position and available volume are unknown. Spread, commissions, financing, borrow and market impact belong to the model where applicable. A final close mark is a valuation, not proof of an executable exit.

Separate development from evaluation

Chronological development and untouched evaluation periods respect the direction of time. Training labels that span a later evaluation period can still leak outcomes across the boundary. Where holding windows overlap, remove or separate observations whose label intervals cross the split; document the chosen rule rather than relying only on row dates.

Walk-forward evaluation repeatedly fits using prior data and tests on later data. It still requires a fixed procedure for parameter selection and a record of all experiments. Repeatedly revising the procedure after inspecting the same test periods turns those periods into development data.

Reconcile the simulator before interpreting returns

Check cash plus marked positions against equity, quantities against fills, and trade P&L against the equity path. Verify no signal reads future rows, missing bars retain explicit status, and costs are charged at the intended events. Hand-calculate small synthetic cases with gaps, collisions, delistings and simultaneous orders.

Passing these tests establishes implementation behavior under the contract; it does not validate the contract’s realism or prove investment value. A perfectly implemented model can still answer the wrong historical question. Preserve code version, input provenance and run configuration so differences can be traced.

Report the strongest claim the data support

Distinguish a mathematical demonstration, a current-code replay on revised history, a point-in-time model and an actual execution record. Do not promote one category into another merely because the output contains many rows. Unknown membership, data vintage or order state remains unknown.

A useful failed test may show that the proposed advantage is absent, fragile or unidentifiable from retained evidence. That result can prevent an unjustified production change. Honest limitations are part of the analytical result, not an appendix to discard.

Evidence and source notes

Original WOI explanations and synthetic mathematical examples. For the selection problem and its formal treatment, see David H. Bailey, Jonathan M. Borwein, Marcos López de Prado and Qiji Jim Zhu, The Probability of Backtest Overfitting. This page does not implement or claim a numerical PBO estimate. Source checked 3 December 2026.