Backtesting Crypto Strategies: A Practical Guide
Backtesting Crypto Strategies: A Practical Guide
A backtest is the first reality check for any trading strategy. Run it well and it tells you whether an idea has edge before you risk real capital. Run it badly and it tells you what you want to hear — a smooth equity curve that falls apart the moment you go live.
This is a practical guide to backtesting crypto futures strategies: what to test, what to model, what to ignore, and the biases that quietly destroy most backtests.
What a Backtest Actually Tests
A backtest replays historical price data through your strategy and records every hypothetical trade: entry, exit, PnL, drawdown. The output is a set of statistics — net return, win rate, Sharpe ratio, max drawdown, expectancy per trade.
The goal is not to find the strategy with the best backtest. The goal is to find a strategy whose edge is robust enough to survive live trading, where conditions are always worse than the backtest assumes.
Step 1: Get Clean Data
Garbage in, garbage out. Before running any backtest, verify your OHLCV data:
- No missing candles — gaps create phantom trades or hide real ones
- No duplicate timestamps — duplicates skew indicator calculations
- Consistent timeframe — mixing 1m and 5m candles without alignment breaks everything
- Coverage across regimes — test through trends, ranges, crashes, and pumps
Crypto data is noisy. Exchange outages, API gaps, and funding-rate quirks all create holes. If your backtest period only covers a bull market, your results are not robust — they are a bull-market artifact.
Step 2: Model Costs Honestly
This is where most backtests die. A strategy that returns 40% in a backtest with no costs can lose money live once real costs are included.
The Three Cost Layers
- Trading fees — usually 0.02% maker / 0.05% taker per side on KuCoin Futures. Round-trip = both sides.
- Slippage — the difference between your signal price and your fill price. In fast markets this is larger than the fee.
- Funding rates — perpetual futures charge funding every 8 hours. Holding a position across funding windows is a real cost (or credit) that backtests often ignore.
If your backtest does not model all three, the results are optimistic. Add them. A strategy with 0.1% edge per trade and 0.08% round-trip costs has 0.02% of real edge — and slippage will likely erase it.
Step 3: Test Across Regimes
Markets have regimes: trending, ranging, volatile, flat. A strategy optimized for a trend will bleed in a range. A strategy built for volatility will sit idle in a flat market.
A good backtest reports performance per regime, not just one aggregate number. If 90% of your profit comes from one 3-week trending window and the rest is break-even or negative, you do not have a robust strategy — you have a trend-following strategy that needs trends to work.
Regime-Aware Backtesting
Split your backtest period into labeled regimes and measure each separately:
- Trending up — how does the strategy perform?
- Trending down — does it adapt or bleed?
- Ranging — does it avoid false signals or get chopped up?
- High volatility — do stops get hit by noise?
If a strategy only works in one regime, that is fine — but it should only run in that regime live. This is what regime detection is for.
Step 4: Watch for the Five Biases
1. Overfitting
Tuning parameters until the backtest looks perfect. The more parameters you tune, the more likely you are fitting noise. A strategy with 12 optimized parameters and a 5.0 Sharpe is almost certainly overfit. Test it on out-of-sample data it has never seen.
2. Look-Ahead Bias
Using information that would not have been available at the time of the trade. The classic example: using the close price to decide a trade at the open of the same candle. In real trading you do not know the close until the candle closes.
3. Survivorship Bias
Backtesting only on coins that still exist. Coins that delisted during your test period are gone from your data — but a live trader would have taken the loss. If your universe only includes current top-100 coins, your backtest skips all the coins that crashed to zero.
4. Selection Bias
Choosing the backtest period because it makes the strategy look good. "Let's test 2023–2024" skips the 2022 bear market. Always test the full available history, including the ugly parts.
5. Ignoring Capacity
A strategy that trades thin altcoins with $2k of simulated capital may not work with $50k — your own orders move the market. If your backtest ignores order book depth, live fills will be worse.
Step 5: Validate Before Going Live
A backtest is necessary but not sufficient. The intermediate step is shadow mode — running the strategy live against real market data with no real capital. Shadow mode catches everything the backtest missed:
- Execution timing gaps
- Data feed differences
- Funding-rate surprises
- Slippage in real conditions
A strategy should only go live after it proves itself in shadow over a meaningful sample (30+ trades, Sharpe > 0.5, positive expectancy). Read our shadow mode deep dive for the full criteria.
The Statistics That Matter
| Metric | What It Tells You |
|---|---|
| Expectancy per trade | Average PnL per trade after costs. The single most important number. |
| Sharpe ratio | Return per unit of volatility. Penalizes wild swings. |
| Max drawdown | Worst peak-to-trough loss. Tests your ability to hold through the bad stretch. |
| Win rate | Only meaningful alongside average win/loss size. |
| Profit factor | Gross profit / gross loss. Above 1.5 is reasonable; below 1.2 is fragile. |
Ignore anyone who quotes only net return. A 100% return with a 70% drawdown is not a good strategy — it is a strategy that almost went to zero and got lucky.
See It Live
SuperKamouBot backtests every strategy before it touches live capital, then validates in shadow mode, then promotes only the survivors. You can see the live results — including the losing trades — on the results page, or check the pricing for signal subscriptions.
Disclaimer: Trading cryptocurrency futures involves substantial risk of loss. Past performance does not guarantee future results. Backtests are hypothetical and do not represent actual trading. This is not financial advice.
Risk Notice: Trading cryptocurrency futures involves substantial risk of loss. Past performance does not guarantee future results. This is not financial advice.
