Walk-forward testing for systems that trade in seconds
Posted: Fri Oct 30, 2026 1:01 pm
Walk-forward testing for systems that trade in seconds
Walk-forward testing means optimizing on one window of data, trading the next window blind, then sliding forward and repeating. It mimics how a strategy gets used in real life: fit on the past, run on the future.
For short-horizon systems, window length is the tricky choice. Too short, and the optimization chases noise. Too long, and it averages across regimes that no longer apply.
A reasonable starting point is a few weeks of tick data for fitting and one week for testing, rolled forward in weekly steps. That gives dozens of independent out-of-sample periods over a year.
What matters is how stable the results are across those periods. A strategy that makes money in 40 of 52 test weeks is more convincing than one that earns a huge profit in three weeks and loses in the rest.
Also watch how much the optimal parameters drift from window to window. If the best stop distance jumps from 3 pips to 9 and back, the system is fitting noise, and the live version will wander too.
For scalping systems, how wide are the training windows, and do the chosen parameters stay stable?
Walk-forward testing means optimizing on one window of data, trading the next window blind, then sliding forward and repeating. It mimics how a strategy gets used in real life: fit on the past, run on the future.
For short-horizon systems, window length is the tricky choice. Too short, and the optimization chases noise. Too long, and it averages across regimes that no longer apply.
A reasonable starting point is a few weeks of tick data for fitting and one week for testing, rolled forward in weekly steps. That gives dozens of independent out-of-sample periods over a year.
What matters is how stable the results are across those periods. A strategy that makes money in 40 of 52 test weeks is more convincing than one that earns a huge profit in three weeks and loses in the rest.
Also watch how much the optimal parameters drift from window to window. If the best stop distance jumps from 3 pips to 9 and back, the system is fitting noise, and the live version will wander too.
For scalping systems, how wide are the training windows, and do the chosen parameters stay stable?