20-bar or 55-bar breakout: which Donchian channel length works better on crypto?

With the entry channel at 55, the Breakout (Donchian / turtle) rule returned +30.2%, against -11.3% at 20, on a 10-coin basket from August 2024 through November 2026, after fees and funding. 1 of the 2 values made money.

Data through December 1, 2026 on Hyperliquid perpetuals, net of fees, slippage and funding

By Keel Research Team
Updated December 2, 2026

Full test: Breakout (Donchian / turtle)

Which settings mattered most?

The test ran Breakout (Donchian / turtle) at every combination of Entry channel (bars) and Exit channel (bars) on the basket. Each square is one combination: choose one to see its numbers.

Each square shows a Sharpe ratio. Colour follows the number: red below zero, green above it. The outlined square is the default setting.

Breakout (Donchian / turtle) settings on the basket: Sharpe for each combination
Entry channel (bars)across: Exit channel (bars)5101520
20
30
40
55

Entry channel (bars) 20, Exit channel (bars) 10 (the default setting)

Sharpe
0.01
Return
-11.3%
Worst drawdown
38.5%
Win rate
34.1%
Round trips
2,015
Fees
16.2%
Funding paid
4.9%

Open this setting in Keel →

What are the numbers behind the answer?

The table lists every run of Breakout (Donchian / turtle) that the answer reads, from 2024-08-15 to 2026-12-01.

Of the 2 "Entry channel (bars)" options compared, a setting of 55 had the highest Sharpe, and 1 made money. With "Entry channel (bars)" set to 20 and 55, the Breakout (Donchian / turtle) rule on the 10-coin basket returned -11.3% at 20 and +30.2% (Sharpe 0.57) at 55, on the 4-hour chart, long and short, on Hyperliquid perpetuals from August 2024 through November 2026, net of fees, slippage and funding. That is with "Exit channel (bars)" at its default, 10; a "Entry channel (bars)" of 55 also had the highest Sharpe at 0 of the 4 values of "Exit channel (bars)" tested, and the default settings rank 13 of the 16 tested.

Entry channel (bars): the options compared

2024-08-15 to 2026-12-01
RunSharpe at 20Sharpe at 30Sharpe at 40Sharpe at 55Return at 20Return at 30Return at 40Return at 55
Exit channel (bars) 5-0.39-0.050.200.12-28.1%-9.2%+4.8%+0.8%
Exit channel (bars) 100.010.320.630.57-11.3%+12.1%+37.0%+30.2%
Exit channel (bars) 150.220.520.810.72+3.3%+30.9%+60.7%+47.5%
Exit channel (bars) 20-0.010.260.570.51-16.3%+6.8%+36.1%+29.3%

The highlighted rows are the runs the answer reads. No run is left out for losing money.

Where did it hold up best?

Among the runs that can be opened from this page, Breakout (Donchian / turtle), the basket, 4-hour chart, long and short, Entry channel (bars) 40, Exit channel (bars) 15 had the highest Sharpe of those that made money.

Breakout (Donchian / turtle), the basket, 4-hour chart, long and short, Entry channel (bars) 40, Exit channel (bars) 15. A starting point from this test, not a recommendation.

At $1,000, this strategy’s worst historical dip was about $251. Free account, your own Hyperliquid keys. Keel only trades.

Configuration

Globalsconfig
target_timeframe4h
UniverseassetsManual · HL Perps · 10 symbols10 resolved
Executionorders
rebalanceBufferedbuffer_threshold0.25buffer_moderelative+1
Pipeline19 steps
PriceDataLoaderData Loader
ohlcvstore
ExtractSeriesSignal Transform
series_nameclose
closestore
closeload
MinMaxNormalizeSignal Transform
window40min_periods40
entry_posstore
closeload
MinMaxNormalizeSignal Transform
min_periods15window15
exit_posstore
Parallel4 branches
long_in
entry_posload
AboveThresholdFilterSignal Transform
threshold1inclusivetrue
long_instore
short_in
entry_posload
BelowThresholdFilterSignal Transform
threshold0inclusivetrue
short_instore
long_out
exit_posload
BelowThresholdFilterSignal Transform
threshold0inclusivetrue
long_outstore
short_out
exit_posload
AboveThresholdFilterSignal Transform
threshold1inclusivetrue
short_outstore
Parallel2 branches
fast
long_inload
slow
short_inload
CrossoverSignal Composer
ThresholdCrossSignal Transform
upper0.5lower-0.5modesymmetric
entriesstore
TradeManagerPosition Manager
entriesentriespricesohlcv
Parallel2 branches
long_exit
Parallel2 branches
a
IsLongPosition Manager
b
long_outload
MaskAndSignal Composer
ExitPosition Manager
short_exit
Parallel2 branches
a
IsShortPosition Manager
b
short_outload
MaskAndSignal Composer
ExitPosition Manager
ExposurePosition Manager
EqualWeightSizerPosition Sizer
target_leverage1max_weight0.1

Ask your assistant to run this

The result on this page was computed with Keel. With the Keel connector, an assistant such as Claude or ChatGPT can run a variation of this test (another coin, timeframe or setting) on the same Hyperliquid perpetuals data.

Change the coin, the timeframe or a setting in the prompt before sending it.

For assistants: The tables on this page are served as JSON at https://usekeel.io/strategies/questions/20-bar-or-55-bar-breakout-crypto/data.json. The Keel connector at https://mcp.usekeel.io/mcp runs backtests on the same data: keel_strategy_compose saves a strategy from its source, which the Code view on this page shows, and keel_backtest_run runs it. The steps to add the connector are at https://usekeel.io/agents.

How does it compare with holding?

The chart draws Breakout (Donchian / turtle), the basket, 4-hour chart, long and short against holding the same coins over the same weeks.

The strategyHolding the same coinsDrawdown

How was this tested?

The test of Breakout (Donchian / turtle) ran on Hyperliquid perpetual futures from 2024-08-15 to 2026-12-01, net of fees, slippage and funding.

Breakout (Donchian / turtle)

Entry
Buy when the bar closes at the highest close of the last 20 bars (this bar included). Short when it closes at the lowest close of the last 20 bars.
Exit
Close the long when the bar closes at the lowest close of the last 10 bars; close the short when it closes at the highest close of the last 10 bars. An opposite 20-bar breakout flips the trade.
The full test of this rule
Market
Hyperliquid perpetual futures
Window
2024-08-15 to 2026-12-01
Costs
4.5bp fee + 4.5bp slippage per trade (9bp round-trip); funding included
The buttons open
Breakout (Donchian / turtle), the basket, 4-hour chart, long and short, Entry channel (bars) 40, Exit channel (bars) 15
Its coins
The 10 Hyperliquid perps with the most traded dollar volume in the 90 days to 2026-12-01, pinned: the same 10 coins are used for the whole test. The list was picked on the last day of the test window, with hindsight, so it favours coins that were heavily traded at the end. HYPE, ZEC, PUMP and LIT were listed after the window starts: each trades from its first bar, and before that its tenth of the account stays in cash.
Its sizing
Each of the ten coins trades its own signal and opens each trade at 1/10 of the account. While a trade is open, if its share of the account drifts more than 25% from that tenth, it is trimmed or topped up back to the edge of that range. No stop.
How the coins were picked
The 10 coins of the basket are the Hyperliquid perps with the most traded volume in the 90 days to December 1, 2026. They were picked on the last day of the test, with hindsight, so the list favours coins that were heavily traded at the end.

Every number on this page comes from Keel backtests on Hyperliquid perpetual futures, net of fees, slippage and funding. These are historical results for one window. They do not predict the next one, and none of this is investment advice. How these backtests were produced has the method, and the guide to crypto backtesting covers fees, funding, slippage, look-ahead and overfitting.

What changes for my coins and settings?

The test of Breakout (Donchian / turtle) used one window, one set of coins and one set of settings, and each of those is something you can change in your own draft.

  • This is one window, from August 2024 through November 2026. Another period can give another answer.
  • The basket is pinned to 10 coins picked by traded volume. It does not follow new listings.
Other coins
Fork the strategy and change its coins, then backtest it again.
Another timeframe
Change the timeframe in the editor and run the same test on it.
Other settings
Change the settings in the editor and backtest your version with fees, slippage and funding.
From today
Paper trade your version on live Hyperliquid prices with simulated money, with fees and funding charged.

Breakout (Donchian / turtle), the basket, 4-hour chart, long and short, Entry channel (bars) 40, Exit channel (bars) 15. A starting point from this test, not a recommendation.

At $1,000, this strategy’s worst historical dip was about $251. Free account, your own Hyperliquid keys. Keel only trades.

Paper trade it from today: Opens Breakout (Donchian / turtle), the basket, daily chart, long only on the paper step: simulated money on live Hyperliquid prices, no real money. The free plan runs 1 paper strategy at a time.

How do I run it myself?

Running Breakout (Donchian / turtle), the basket, 4-hour chart, long and short, Entry channel (bars) 40, Exit channel (bars) 15 yourself takes three steps in Keel, and you can stop after any of them.

  1. Fork it

    Open this strategy in Keel as your own draft. Change the coins, the timeframe or the settings, and backtest your version with fees, slippage and funding before you trust it.

  2. Paper trade it

    Run it forward on live Hyperliquid prices with simulated money, with fees and funding charged. You need no wallet for this, and no money is at risk, so you can see whether your version trades the way its backtest did.

    How paper trading works
  3. Run it from your own Hyperliquid account

    Connect the wallet you use on Hyperliquid and approve an agent wallet: a separate key that can place trades for you but can never withdraw or transfer funds. Your money stays in your own account. Keel runs the strategy on its servers and it decides after each candle closes, so nothing has to stay open on your computer. One strategy runs per account and trades all of it, and Keel shows the amount it needs before you go live. Pause it or revoke the agent wallet whenever you like; that never moves your money.

    How a Keel trading bot works

Breakout (Donchian / turtle), the basket, 4-hour chart, long and short, Entry channel (bars) 40, Exit channel (bars) 15. A starting point from this test, not a recommendation.

At $1,000, this strategy’s worst historical dip was about $251. Free account, your own Hyperliquid keys. Keel only trades.

Building, backtesting and paper trading are free to start, and the free plan can also run a strategy live. The pricing page has the fees and limits.

FAQ

What else do readers ask?

Which coins were in the test?

The basket is 10 coins: BTC, ETH, HYPE, ZEC, SOL, NEAR, XRP, PUMP, LIT and ENA. Each trades its own signal with an equal share of the account.

What period does the test cover?

The test ran from August 2024 through November 2026 on Hyperliquid perpetuals.

Is the 55-bar turtle breakout better than the 20-bar breakout on crypto?

With the entry channel at 55, the Breakout (Donchian / turtle) rule returned +30.2%, against -11.3% at 20, on a 10-coin basket from August 2024 through November 2026, after fees and funding.