Re-picking the settings

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.

By Keel Research Team
Updated November 12, 2026
Check a strategy

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.

Keel's study

The same study on a library strategy

Re-picking the settings
Re-picking the settingsSharpe for 16 cells, lookback days (Days looked back) by every (Days between re-picks); colour from −1.01 to 1.01.0.850.600.690.750.961.010.720.860.880.850.860.500.0540.17−0.130.01660901803657143060Colour · Sharpe · −1.01+1.01lookback days (Days looked back) ↓every (Days between re-picks) →
The numbers
every (Days between re-picks)lookback days (Days looked back)Sharpe
7600.85
14600.60
30600.69
60600.75
7900.96
14901.01
30900.72
60900.86
71800.88
141800.85
301800.86
601800.50
73650.054
143650.17
30365−0.13
603650.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.

What it is

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.

Why it matters in crypto

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.

FAQ

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.