How to backtest a crypto trading strategy
Updated 25 October 2026 · 3 min read
Backtesting means running your trading rules over past candles to see which trades they would have made and how those trades ended. It takes minutes and costs nothing — and a bad idea found here costs you no money.
Step 1: write rules a computer can follow
"Buy when it looks strong" cannot be tested. Every rule must be exact:
- Entry: exactly when you buy, for example "a candle closes above the last high".
- Stop-loss: exactly where, for example "just below the last low".
- Take-profit: for example "2 times the stop distance" (a 1 : 2 risk : reward).
- Size: the same risk in USDT on every trade.
Step 2: choose the coin, timeframe and period
Test several months and more than one coin. The period should hold rises, falls and flat weeks — a strategy that only worked in one rally will fail when the market changes.
Step 3: include the fees
Binance's standard Spot fee is 0.1 % per buy and 0.1 % per sell — about 0.2 % per trade. The smaller your stop, the bigger the part fees take. With a 1 : 2 risk : reward:
| Stop distance | Win after fees | Loss after fees | Win rate needed to break even |
|---|---|---|---|
| 2 % | +3.8 % | −2.2 % | about 37 % |
| 1 % | +1.8 % | −1.2 % | about 40 % |
| 0.3 % | +0.4 % | −0.5 % | about 56 % |
Without fees, 1 : 2 needs only 33 % winners. With a 0.3 % stop — common on 1-minute charts — it needs more than half. A test without fees would hide this completely.
Step 4: read the results the right way
A win rate alone says nothing — compare it with the risk : reward. Before fees, the win rate you need to break even is 1 ÷ (1 + R):
| Risk : reward | Break-even win rate (before fees) |
|---|---|
| 1 : 1 | 50 % |
| 1 : 2 | 33 % |
| 1 : 3 | 25 % |
Then look at:
- the number of trades — a handful proves nothing;
- the total profit or loss after fees;
- the longest losing streak and the biggest drop from a high point. Could you live through them with real money?
Mistakes that make a bad strategy look good
- Too few trades. Ten lucky trades can look like a great strategy.
- Tuning until the past looks perfect. Change the rules enough and any past chart fits. Test the final rules again on a period you did not tune on.
- Looking into the future. A rule may only use candles that had already closed at that moment.
- Forgetting fees (see step 3).
- One coin in one rally. Test several coins and different months.
Backtest in Spot Terminal Pro
The Strategy Tester (Pro) runs a strategy on real Binance candles of any USDT pair, from 1 minute to 1 day and up to 6 months back. It draws every trade on the chart with entry, TP and SL, and shows trades, wins, losses and PnL with fees (0.2 % per round trip) included. You choose the risk : reward (1 : 1 to 1 : 20) and the risk per trade. Have your own idea? Press + Add strategy, give the format to an AI such as ChatGPT or Claude with your idea, and paste the code it writes. When the results look right, Auto Trade can run it for you 24/7.
Questions
How many trades are enough?
There is no magic number, but dozens at the very least, spread over different months and more than one coin.
Does a good backtest promise profit?
No. It shows how the rules did on past candles. The future can be different — start small with real money.
Do I need to know programming?
Not with Spot Terminal Pro: an AI writes the code from your description, in the format the terminal gives you.
Read next
Trading is risky and you can lose money. This article is general information, not financial advice. Spot Terminal Pro is an independent tool and is not affiliated with Binance.
Home · Learn · Terminal · Setup guide · Privacy · Terms · YouTube · Facebook