Walk-forward and out-of-sample testing
Core concept
Select parameters using only earlier data and freeze them before testing the next interval.
Worked example
Train on January–March, validate April; then train February–April and validate May. Combine only test-window results.
Practice task
Write down parameter grid, selection metric and date boundaries before running.
Limitations
Repeatedly changing rules after viewing test results makes those results part of training.
