Walk-forward testing for crypto strategies
Walk-forward testing measures a strategy on data it has not seen: you choose settings on one stretch of history, test them on the next, then roll forward and repeat. In Keel Research, the Check a strategy study re-picks settings as it goes: on each stretch it picks the settings from what came before, then measures the days after.
What the study measures
Each one is a measurement with its sample and its interval. You set the bars.
The settings picked on each stretch
Which settings were picked from what came before, stretch by stretch.
The days after
The return of those settings on the stretch that followed, joined into one curve.
Against your fixed setting
The re-picked curve beside the setting you saved, over the same dates.
Everything else in the Check
Costs, a day late, fewer coins, random books and resampled paths, in the same study.
The same study on a library strategy
The numbers
| every (Days between re-picks) | lookback days (Days looked back) | Sharpe |
|---|---|---|
| 7 | 60 | 0.85 |
| 14 | 60 | 0.60 |
| 30 | 60 | 0.69 |
| 60 | 60 | 0.75 |
| 7 | 90 | 0.96 |
| 14 | 90 | 1.01 |
| 30 | 90 | 0.72 |
| 60 | 90 | 0.86 |
| 7 | 180 | 0.88 |
| 14 | 180 | 0.85 |
| 30 | 180 | 0.86 |
| 60 | 180 | 0.50 |
| 7 | 365 | 0.054 |
| 14 | 365 | 0.17 |
| 30 | 365 | −0.13 |
| 60 | 365 | 0.016 |
Keel's study of Momentum Strategy on Hyperliquid · computed Nov 16, 2026 · data Aug 15, 2024 to Sep 29, 2026
Keel shows the measurements; you decide what counts as enough. Not investment advice.
Choose on one window, test on the next
A normal backtest uses all of your history at once. If you tuned the strategy on that same history, the result flatters it. Walk-forward testing splits the history into steps. In each step you pick settings on an in-sample window and then measure them on the out-of-sample window that follows.
Then you move forward. The next in-sample window starts later, you choose again, and you test on the next unseen stretch. Joining the out-of-sample pieces gives one equity curve made only of results the strategy had not seen when its settings were chosen.
If that joined curve looks like the full backtest, the strategy probably held up. If the edge disappears outside the windows it was chosen on, you find that out before you trade it.
Crypto regimes change fast
Crypto moves between strong trends, long chop and sharp crashes, often more than once a year. Settings that fit one regime can fail in the next, and a single backtest over the whole period hides when that happened.
Walk-forward testing makes the change visible. You see each out-of-sample step on its own, so a strategy that only worked in one bull run stands out.
Funding matters here as well. Funding on Hyperliquid swings with positioning, so a carry or momentum idea can earn in one window and pay in the next. Each window needs real costs and funding to be a fair test.
Common questions
What is walk-forward testing?
A way to test a strategy on data it has not seen. You choose settings on one window of history, test them on the next window, then roll forward and repeat. The out-of-sample results joined together are the honest estimate.
Is walk-forward testing the same as walk-forward optimization?
They describe the same loop. Walk-forward optimization puts the weight on picking settings in each in-sample window. Walk-forward testing puts it on the out-of-sample result.
Does Keel run walk-forward testing?
The Check a strategy study re-picks the settings on each stretch from what came before and measures the days after, with fees, slippage and funding in every run.
How long should the windows be?
Long enough that each out-of-sample window holds a fair number of trades. With a few years of crypto data, several months in-sample and one or two months out-of-sample is a common start.
Do the studies use the same backtests as the rest of Keel?
Yes. Every run inside a study is a Keel backtest, with trading fees, slippage and Hyperliquid's hourly funding, on the same engine as the backtest you run from the editor. How Keel works explains the engine.
Study your own strategy
Pick a strategy you saved in Keel, and the Check a strategy study runs on it with the same steps.