StratBase.aiStratBase.ai
DashboardCreate BacktestMy BacktestsCatalogBlogNewsToolsHelp

Products

  • Researcher Dashboard
  • Create Backtest
  • My Backtests
  • Catalog
  • Blog
  • News

Alerts

  • Calendar
  • OI Screener
  • Funding Rate
  • REKT
  • Pump/Dump

Company

  • About Us
  • Pricing
  • Affiliate
  • AI Widget
  • Contact

Legal

  • Privacy
  • Terms
  • Refund Policy

Support

  • Help Center
  • Reviews
StratBase.aiStratBase.ai

Think it. Test it.

StratBase.ai does not provide financial advice or trading recommendations. AI only formalizes user ideas into testable strategy configurations for research purposes. Past backtesting performance does not guarantee future results. All trading decisions and associated risks are the sole responsibility of the user. This platform is not a broker and does not facilitate real trading.

© 2026 StratBase.ai · AI-powered strategy research and backtesting platform

support@stratbase.ai
How to Backtest a Crypto Trading Strategy Step by Step
How-ToENbacktest cryptocryptocurrency backtesting

How to Backtest a Crypto Trading Strategy Step by Step

David Ross2/28/2026(updated 5/16/2026)5 min read245 views

Crypto moves fast. A strategy that mints money in January can hemorrhage capital by March. The only way to separate genuine edge from noise is systematic backtesting on real exchange data — not a napkin sketch of “buy low, sell high.”

I've been trading crypto since 2017 and backtesting strategies across every major exchange. Here's the process I use, stripped down to what actually matters.

Getting the Right Data

Garbage data produces garbage backtests. For crypto, you need exchange-specific OHLCV data because prices vary between exchanges. A strategy tuned on Binance data might fail on Bybit due to different liquidity profiles and fee structures.

Key data considerations for crypto:

  • Timeframe selection: 1-minute data for scalping, 1-hour for intraday, 4-hour or daily for swing trading
  • Data period: Minimum 2 years. Must include at least one bull and one bear cycle (2021 bull → 2022 bear → 2023 recovery is ideal)
  • Volume data: Essential — crypto strategies that ignore volume are testing blind
  • Futures-specific metrics: Open interest, funding rates, and liquidation data if trading perpetuals

Setting Up Your Crypto Backtest

A proper crypto backtest configuration includes these parameters at minimum:

ParameterSpot TradingFutures Trading
Commission0.1% round trip0.04–0.08% round trip
Slippage0.05%0.03–0.1%
Funding rateN/A~0.01% per 8 hours
Leverage1×1–10× (conservative)
Position sizeFull or % of equity% risk per trade
Liquidation priceN/AAuto-calculated

One mistake I see repeatedly: people backtest crypto futures at 50× leverage because “that's what the exchange offers.” At 50×, a 2% adverse move liquidates your position. Over a 2-year backtest, you'd be liquidated dozens of times. Test at 3–5× maximum for any strategy you plan to run with real money.

Crypto-Specific Pitfalls

24/7 markets. Unlike stocks or forex, crypto never closes. Your strategy must handle weekends, holidays, and low-liquidity periods (Saturday 3 AM UTC typically has the widest spreads). Factor in at least 2× normal slippage during off-hours.

Extreme volatility events. Crypto regularly sees 10–30% daily moves. Your backtest must include events like the March 2020 crash (−50% in 2 days), the May 2021 crash (−55% from peak), and the November 2022 FTX collapse. If your strategy can't survive these, it shouldn't be running.

Exchange-specific quirks. Binance uses last traded price for liquidation. Bybit uses mark price. This difference matters when backtesting strategies that use tight stops on leveraged positions.

“In crypto, the strategy that makes 200% in a bull market and loses 80% in a bear market has the same expected value as the strategy that makes 30% consistently. But only one of them lets you sleep at night.” — My trading journal, December 2022

Common Pitfalls Specific to Crypto Backtesting

Beyond the obvious data and cost issues, crypto backtesting has traps that catch even experienced traders:

Ignoring the 24/7 calendar effect. Crypto markets behave differently on weekends versus weekdays. Weekend volume on BTC/USDT can drop 40–60% compared to Tuesday afternoon. Consider adding a time-of-week filter or doubling your slippage assumption for weekend entries.

Exchange data fragmentation. A BTC/USDT candle on Binance and the same candle on Bybit can differ by 0.1–0.3% on close price. Always backtest on data from the exchange you plan to trade on, not aggregated or index prices.

Funding rate accumulation. A strategy holding perpetual futures for days accumulates funding payments that can reach 0.5–2% per week during extreme sentiment. A backtest that ignores funding might show +15% monthly returns, while real execution nets only +8%.

Validating Your Results

After your backtest runs, don't celebrate yet. Run these checks:

  1. Split your data 70/30. Optimize on the first 70%, test on the last 30%. If out-of-sample Sharpe ratio is less than half of in-sample, your strategy is overfitted.
  2. Test on multiple pairs. BTC/USDT works? Try ETH/USDT, SOL/USDT, BNB/USDT. A strategy that only works on one pair is fragile.
  3. Check trade distribution. Are profits concentrated in a few big winners? That's fragile. Consistent small profits across many trades is more robust.
  4. Verify during drawdowns. How did the strategy perform during the 2022 bear market? During the FTX crash? Those stress tests matter more than the average case.

Post-Backtest Validation Checklist

Before trusting any crypto backtest result, walk through this checklist:

  • Cost realism: Are commission, slippage, and funding rates set to realistic values for your exchange tier?
  • Minimum trade count: Do you have at least 100 trades? Fewer than that and the confidence interval around win rate is ±10% or wider.
  • Regime coverage: Does your test period include both a bull and a bear market?
  • Drawdown survivability: Could you survive the maximum drawdown shown? If the backtest shows −35%, expect −40–50% in live trading.

Next Steps After a Successful Backtest

A profitable backtest is the starting point, not the finish line. Before committing capital:

Forward-test on recent data. Exclude the last 3–6 months from your backtest, run the strategy on the excluded period without changes. If results hold, your edge is more likely genuine.

Paper trade for 2–4 weeks. Execute the strategy in real-time on a demo account. This reveals execution issues — can you enter at the prices your backtest assumed?

Start with reduced size. Use 25–50% of your intended position size for the first month. This limits damage if live performance diverges from backtested expectations.

FAQ

What data do I need to backtest a crypto strategy?

OHLCV candlestick data at your desired timeframe. For most strategies, 1-minute or 1-hour data from exchanges like Binance or Bybit works well. A minimum of 1–2 years is recommended.

Should I include funding rates in crypto backtests?

If trading perpetual futures, yes. Funding rates typically range from −0.1% to 0.1% every 8 hours, creating significant impact over time.

Further Reading

  • Backtesting on Investopedia
  • Sharpe Ratio on Investopedia
  • Drawdown on Investopedia

About the Author

D
David Ross

Financial data analyst focused on crypto derivatives and on-chain metrics. Expert in futures market microstructure and funding rate strategies.

FAQ

What data do I need to backtest a crypto strategy?▾

You need OHLCV (Open, High, Low, Close, Volume) candlestick data at your desired timeframe. For most strategies, 1-minute or 1-hour data from exchanges like Binance or Bybit works well. A minimum of 1-2 years of data is recommended.

Should I include funding rates in crypto backtests?▾

If you're trading perpetual futures, absolutely. Funding rates on exchanges like Binance typically range from -0.1% to 0.1% every 8 hours. Over time, this creates a significant drag or boost that can completely change your results.

Further reading

Position SizeLiquidation PriceOpen InterestFunding RateLiquidation

Related articles

best crypto backtesting platformsaccount slippage backtestingaccumulation distribution guideadx trend strength guideai assistant create strategy

Comments (0)

Loading comments...