crypta. Log in

How to backtest a crypto trading strategy

Use Strategy Lab to replay historical Spot or Futures candles and see how your bot rules would have behaved over a chosen period.

Make the comparison fair

Pick the exchange, pair, market, candle interval and date window. Keep the starting balance, fees and slippage the same when comparing two strategies. For Futures, compare the same position direction. The public Futures replay uses 1× leverage.

Read the equity curve and fills

Net return shows how the modeled account value changed after trading costs. Maximum drawdown measures the largest drop from an equity peak. Review individual fills and the number of closed trades to see whether one trade drove most of the result.

Check a different period before using the result

Save the settings you chose and run them on a period you did not use to tune the strategy. Include both trending and sideways markets. A candle-based backtest models fills and trading costs. Actual exchange fills, timing and costs can differ.