Grid trading bot: how it works and when it makes money
A grid bot places a ladder of orders and keeps buying lower and selling higher while the price moves back and forth. It sounds like passive income, and in a sideways market it is. We look at how it works and how to set it up, then test a grid on 23 months of BTC: where it beats simply holding the coin and where it loses.
What a grid bot is
A grid bot splits a price range into equal steps and places a limit order on each one. Buy orders sit below the current price, sell orders sit above it. The price drops one step, the bot buys. It rises one step, the bot sells what it bought and keeps the difference. Then it waits again.
The bot does not guess direction. It earns on swings inside the range: the more often the price crosses the steps up and down, the more small trades it closes. That is why grid trading is called a strategy for sideways markets. Bybit has these bots in its Trading Bots section, and other exchanges call them the same.
How a grid works, step by step
Say BTC trades at $100,000. You set a range from $90,000 to $110,000 with 20 grid levels, so each step is about 1%. The capital is split into 20 parts. Half of the levels are above the price, so at the start the bot buys coin for those parts, to have something to sell on the way up. The other parts sit in USDT waiting to buy lower.
| What the price did | What the bot did | Result |
|---|---|---|
| Fell from 100,000 to 99,000 | Bought one part at 99,000 | More coin held |
| Came back to 100,000 | Sold that part at 100,000 | +1% on the part, minus fees |
| Rose to 101,000 | Sold a part bought at the start | Less coin held |
| Dropped below 90,000 | Every part is bought, nothing left to sell | You hold the coin at a loss |
The last row is the main risk. While the price stays in the range, the bot keeps collecting steps. When the price leaves the range on the downside, your whole capital is in coin bought on the way down. When it leaves on the upside, the bot sold everything early and the rest of the rally passes you by.
Spot grid and futures grid
A spot grid trades the actual coin with no leverage. There is no liquidation. The worst case is the one above: the price falls and you hold the coin with a paper loss. This is the grid we tested below.
A futures grid runs on perpetual contracts and comes in three modes. Long holds a buy position and behaves like a spot grid. Short earns when the market drifts down. Neutral starts flat and builds a long on dips and a short on rallies. A futures grid uses leverage, so it has a liquidation price. If the price runs far outside the range, a grid on 5× or 10× can lose not part of the deposit but all of it. How liquidation works is covered in the guide long, short and leverage, and you can check your own price in the liquidation calculator.
How to set the range and step
- Range. The lower and upper bound. A range that is too narrow gets broken in a few days. For BTC in our test a ±10% range was broken in 17 months out of 23, a ±20% range only in 6. Check how far the coin usually moves in a week or a month, the ATR shows it.
- Number of levels. More levels mean a smaller step and more trades. But the exchange charges a fee on every trade, usually 0.1% on spot. With a 0.5% step, less than half of each step survives the fees on both sides.
- Arithmetic or geometric. In an arithmetic grid the steps are equal in dollars, in a geometric grid they are equal in percent. For a wide range a geometric grid is handier, because every step then earns the same percentage.
- Amount. Only what you are ready to hold in the coin if it falls through the whole range and further. For a spot grid this is the key question, not the yield.
The main trap: "grid profit"
A bot's card usually shows grid profit in large green numbers. That is what the bot earned on closed steps. Next to it there is a second number, the unrealized result on the coin the bot holds. The real result is the sum of both.
In our test the ±10% grid earned 2.1% a month on closed steps on average. Times 12 that is over 25% a year, and this is the kind of figure grid bot ads show. The full result, counting the coin held, averaged −1.6% a month. Over 23 months, while BTC fell 37.5%, the grid lost 37.0%. It did earn on the swings, but it did not protect against the decline, because on the way down it dutifully bought more coin at every step.
Look at the bot's total result, not the grid profit. And compare it with what simply holding the same amount in the coin or in USDT would have given.
BTC test: 2025–2026
We took hourly BTCUSDT candles from Bybit from 1 January 2025 to 29 November 2026, 23 full months. Each month we restarted a spot grid from the month's opening price: geometric, $10,000 of capital, a 0.1% fee on every trade. Within each hour the price path was open, low, high, close for a green candle and open, high, low, close for a red one.
| Grid | Step | Average month | Months in profit | Total over 23 months |
|---|---|---|---|---|
| ±5%, 10 levels | 1% | −1.9% | 61% | −41.8% |
| ±10%, 20 levels | 1% | −1.6% | 61% | −37.0% |
| ±10%, 40 levels | 0.5% | −2.3% | 61% | −46.4% |
| ±20%, 40 levels | 1% | −1.1% | 57% | −25.9% |
| Hold BTC | −1.3% | 48% | −37.5% |
The grid ended the month in profit more often than BTC, 61% of months against 48%. But its winning months were small and its losing months deep, so in total the grid nearly repeated the coin's decline. The wide ±20% grid did best: the price left its range less often, and the bot bought less coin in the crashes.
A small 0.5% step lost to a 1% step. The bot made 366 trades a month instead of 103, and fees ate the gains. With a 0.1% fee the average month of that grid was −2.3%, with 0.05% it was −1.9%, with 0.02% −1.6%. If you want a small step, you need low fees, otherwise you are working for the exchange.
The clearest picture came from splitting the months by what the market did.
| Market that month | Months | ±10% grid | Hold BTC |
|---|---|---|---|
| Sideways, net move within ±5% | 6 | +2.5% | −1.4% |
| Up more than 5% | 9 | +4.0% | +10.9% |
| Down more than 5% | 8 | −11.0% | −14.9% |
A grid is not magic, it just changes the shape of the result. In a sideways market it beats holding the coin. In a rally it gives up more than half of the move, because it sells on the way up. In a decline it loses a little less, but it still loses. How to read tables like this, and why 6 sideways months prove little, is covered in the guide how to read a backtest.
When to run a grid and when not to
- Run it in a range. The price has been moving between clear support and resistance for weeks, with no trend on the daily chart. Set the range a little wider than those levels.
- Do not run it against a trend. If the daily chart is falling, a spot grid will keep buying the coin at every step down. If it is rising strongly, the grid will sell the coin too early.
- Step well above fees. Keep the step at least 5 times the fee per trade. With 0.1% that means 0.5–1% or more.
- A plan for a break out of the range. Decide in advance what you do if the price drops below the lower bound: hold the coin, stop the bot or set a stop. On a futures grid a stop is a must, otherwise liquidation decides for you. How much to risk on one idea is covered in the guide how much to risk per trade.
- A wide grid is calmer than a narrow one. In our test ±20% lost noticeably less than ±10% and ±5%, even though it earned less on closed steps.
Before you start a bot, it helps to know which regime the coin is in: trend or range. The bot's coin analysis checks the trend on 1D, 4H and 1H, levels and volume, and says plainly when the market has no direction. For a grid that is exactly the first question to ask.
FAQ
What is a grid bot in simple terms?
It is a bot that places a ladder of limit orders in a chosen range. Below the price it buys, above it sells, and it earns on every swing of the price across a grid step. It does not guess direction.
How much does a grid bot make?
On closed steps a ±10% BTC grid earned about 2% a month in 2025–2026. But the full result, counting the coin held, averaged −1.6% a month, because BTC fell 37.5% over that period. In sideways months the grid earned 2.5% on average.
What grid step should I use?
The step should be at least 5 times the fee per trade. With a 0.1% fee that means 0.5–1% or more. In the BTC test a 1% step did better than 0.5%: the finer grid made three times as many trades, and fees ate the gains.
What happens if the price leaves the range?
If the price goes above it, a spot grid has already sold the coin and simply sits in USDT. If it goes below, your whole amount is in the coin at a loss. A futures grid with leverage can be liquidated on a strong break out of the range.
Grid bot or just hold the coin?
It depends on the market. In a range the grid beats holding, in a strong rally it lags by more than half, in a decline it loses a bit less than the coin. Over the 23 months of the test a ±20% grid lost 25.9% while BTC lost 37.5%.
Trend or range: an answer in a minute
Send the bot a ticker: it checks the trend on 1D, 4H and 1H, levels and volume, tells you whether the coin has a direction, and sends an entry, a stop, two targets and a position size for your deposit. 7 days free.