- Quantitative Trading
We Tested 3.5 Million Crypto Strategies. Here Is What Actually Survived
Our GPU search found impressive backtests—and a locked holdout showed why most of them were noise.
Seven steps to a walk-forward test that trains only on the past, reports every fold, and keeps a final holdout.
A walk-forward test chooses a strategy's parameters using only past data, then evaluates them on the next period the optimizer has never seen, and repeats the process as it rolls forward through history. It is closer to the decisions a live system faces than one large backtest, and it exposes parameters that only worked in one period.
Write down the strategy's rules, the parameter ranges you will search, the costs you will apply and what counts as a pass, for example positive net results in most test windows and no worse than buy-and-hold on the same pair and period. Deciding afterwards turns the test into a search for a story.
Divide the data into consecutive pairs of windows: a training window followed by a test window. The test window always comes after its training window, never before or overlapping it.
| Scheme | Training window | Suits | Watch out for |
|---|---|---|---|
| Rolling | Fixed length; drops the oldest data as it moves | Markets whose behaviour changes over time | Fewer data points per fit |
| Anchored | Starts at the beginning and grows | Relationships expected to be stable | Old regimes keep influencing the fit |
Search the parameter ranges on the training window, with costs included, and pick the configuration your pre-set rule selects. Nothing from the test window may influence that choice.
Apply the chosen parameters, unchanged, to the following test window and record the result, net of fees, funding and slippage.
Move both windows forward by the length of the test window and repeat steps 3 and 4 until the end of the data. Each repetition is one fold.
Stitch the test windows together into one out-of-sample record, and also show each fold separately. A strategy that wins in one fold and loses in the rest is a story about that one period. Comparing out-of-sample performance with in-sample performance (sometimes called walk-forward efficiency) shows how much of the backtest survived contact with new data.
Walk-forward analysis does not remove overfitting if you keep redesigning the strategy around its results. Lock a final period that none of the steps above touches, and evaluate on it once.
In Agon, every strategy goes through backtest, Monte Carlo, walk-forward and paper trading, and must pass walk-forward validation before real-money mode is unlocked. In our own research, several attractive ideas weakened or failed when judged fold by fold.
Long enough for the training window to contain a meaningful number of trades and for the test window to cover more than a few days of the strategy's typical holding period. Choose the lengths before running the test.
No. Standard cross-validation shuffles or reuses data in any order, which lets the future leak into training. Walk-forward testing always trains on the past and tests on the future, as live trading does.
No. It means the strategy's parameters held up on data they were not chosen on, in the past. Markets change, and live costs can be higher than modelled.
Research, not investment advice.