Disclosure: I co-founded EdgeLuma, a crypto backtesting tool, and ran the backtest below with it. Tell me if any of my assumptions look wrong.
The first four points use numbers from that backtest. The fifth comes from a small live bot we ran on Bybit.
The bot I tested uses RSI, a popular indicator. It trades BTC/USDT perpetual futures on Bybit, futures that never expire. The test covers November 2024 to November 2026, on 1-hour candles.
Its rules:
- Buy when RSI(14) closes below 30.
- Sell when RSI(14) closes above 70.
- Stop loss: sell if price falls 2% below the entry price.
The bot sizes each trade so that, if the stop is hit, the trade loses 100 USDT. That's 1% of a 10,000 USDT test account.
Over the two years it made 207 trades. It won 27% of them. It lost money even before costs: 3,130 USDT. Costs pushed the loss to 4,219 USDT, about a third more. It's a weak strategy. I use it only to show the costs.
1. Fees
Fees came to 1,077 USDT, about 5 USDT per trade. Each trade could lose 100 USDT, so fees took about 5% of that.
They're that high because of trade size. To lose 100 USDT on a 2% drop, the trade has to be about 5,000 USDT. The backtest charged 0.055% of the trade size when buying, and again when selling. That's what Bybit charges regular users for orders that fill right away.
So a tighter stop means higher fees. With a 1% stop, the same 100 USDT risk needs a 10,000 USDT trade. That doubles the fees.
2. Funding
On perpetual futures, longs and shorts pay each other a fee every few hours, called funding. On Bybit, BTC longs paid it 81% of the time from January 2024 to August 2026.
My bot only bought, so it paid 160 USDT of funding. Like fees, funding is charged on the whole trade size, so a tight stop raises it too.
3. Slippage
Slippage is the gap between the price you wanted and the price you got. A backtest can only estimate it. Mine estimated 16 USDT for all 207 trades, which is small next to the fees. On a small coin, I'd compare that estimate with a few real fills before trusting it.
4. Stops inside the candle
Price can drop through your stop and bounce back before the candle closes. A backtest that only checks closes would keep that trade open. Mine checked each hour on 1-minute candles to catch those stops.
5. Limit order fills
A limit order is an order to buy or sell at a set price. Our backtest counts it as filled as soon as price touches it. On our small live bot, real fills didn't always work that way. Orders placed earlier at the same price fill first, so the price can touch your level and leave you out.
We also learned to check that every order is still open after the bot sends it. The exchange once canceled one of ours right away, but our bot didn't check, so we only found out later on.
Which of these five did your first backtest leave out?