A backtest tells you what happened. It does not tell you what will happen.
Every backtest uses one stretch of historical data and one set of parameters. The result is a single data point — one measurement taken under one set of conditions. If the parameters were optimised on the same data, the backtest is not even that. It is a strategy that already knows the answers to the test.
This is the fundamental problem with standard backtesting. A positive result might reflect a genuine market edge, or it might reflect a strategy that has been tuned to fit historical noise. From a single test, you cannot tell the difference.
Walk-Forward Analysis (WFA) exists to answer that question. Instead of running one backtest on one dataset, WFA runs many — each time optimising parameters on one window of data, then testing them on fresh data the strategy has never seen. If the strategy consistently finds profitable parameters that work on unseen data, the edge is probably real. If the out-of-sample results collapse, the original backtest was overfitted.
This article explains how WFA works, how to configure it, how to read the results, and where things can go wrong.