BACKTEST · HOURLY PRICES · FEES IN
A grid bot buys every time the price steps down through one of its lines and sells one line higher — it earns on the swings and holds the coins it is left with. Set one up on the last weeks of real prices and see what it would have done, against simply holding.
The range starts just inside BTC's low and high of the period — change it to yours.
19 round trips between $57,730 and $81,660 earned $14.40 after fees; the bot ended with 0.01446 BTC and $14.40 in cash — $834.75 in all.
Each one's value as % from the start, hour by hour (at most 200 points).
Range: 2026-10-22 → 2026-11-21 · 181 points · Source: Binance spot BTCUSDT hourly bars; 0.1 % a fill
The range is cut into the grids you choose, each holding the same amount of the coin or the cash to buy it. At the start, the bot buys the coins for every grid above the price (to sell as it rises); the grids below wait with cash. Price down through a line: that grid buys. Price up through the line above: it sells — a round trip. Fees: 0.1 % on every fill.
Inside an hour, the price is taken to go open → low → high → close on a rising hour and open → high → low → close on a falling one: swings smaller than an hour are missed, so a real bot could make a few more round trips. A bot earns most in a range that the price keeps crossing; when the price leaves the range it stops trading — below it, holding every coin it bought on the way down.
A test on past prices, not a promise: the range that would have worked is easy to see afterwards.
Source: Binance spot BTCUSDT hourly bars · read 2026-11-21 04:39 UTC