On this page
In brief
Data held out from designing and tuning a strategy. Lock the rules before testing on the independent range.
How do you hold out a financial time series?
Split observations in chronological order. Fit on an early window, tune parameters in a later validation window and reserve a final subsequent window for evaluation. Document cutoff dates, time zones and data versions. Randomly mixing later observations into development can let a time-ordered test see information from the future.
For a classroom backtest, design the rule in months 1–12, tune it in months 13–16, and evaluate only in months 17–20. If a training label at the end of month 16 requires prices from month 17, it has crossed the boundary. Exclude it from the earlier development window.
How does rolling evaluation differ from one holdout?
Rolling evaluation advances the decision date and fits using only eligible observations before each date. It then evaluates performance over the next window. This lets you compare results across several market conditions. Specify the update schedule and apply the same periods and metrics to the benchmark.
Independence depends on the boundary between development decisions and evaluation results. If a held-out result leads you to change a signal or cost assumption, that window has informed development. Record the revised version and reserve fresh data. A clean evaluation can still reflect its particular market conditions and sample size.
Validation boundaries and information separation
A “test” label does not create independence. If results influence parameters, instruments, trading hours or success criteria, information has entered development even without model training. Set rules for access and unsealing. After result-driven revisions, identify the old test as part of development and reserve fresh observations.
Check boundary overlap. A five-day forward-return training label can extend into a later validation period. Inspect feature and label windows and use a justified gap where required. Fit normalisation on the training data or information then available, rather than allowing future averages or volatility into earlier features.
Walk-forward evaluation can represent scheduled updating, provided the windows are chosen in advance. Join every validation window without cherry-picking or double-counting overlapping returns. Windows need not be statistically independent, so their count is not automatically an independent sample size. Report trades, costs and conditions per window.
A loss does not automatically make a model useless, nor a gain make it deployable. Check pre-set sample, data and execution requirements before comparing outcomes with the benchmark. A short sample may support only “insufficient evidence.” Compare a high-return, repeatedly retuned report with a modest but independently evaluated one to discuss what warrants further research.
The GUTL perspective
Out-of-sample testing checks research discipline. Once its results guide tuning, the data has entered development and fresh validation is needed.
Everyday example
Practice questions prepare you for an exam. Memorising the exam paper makes its score a poor test of performance on unseen questions.
Simulation example
Design the rule on the first 18 months and hold out the next six. Repeated tuning on those six months calls for a separate validation window.
Can I tune the model after a disappointing holdout result?
You can continue the research. Treat the inspected window as a development input after making changes and evaluate again on observations untouched by the revision. A window can provide an independent evaluation only with the rule frozen.
Student comments
Further reading
3 articles-
Backtest
Applying a written trading rule to historical data to simulate fills, costs and performance using information available at each decision.
-
Look-ahead bias
Using information that was unavailable at the simulated decision, which distorts reported performance.
-
Benchmark
A pre-defined reference for judging strategy performance. Match the period, pricing basis and cost treatment.