Crypto grid bot: profit from a sideways market
A grid bot lays a ladder of price levels across a range you choose. It buys at one level and sells at the next one up, again and again, as the price moves up and down inside the range. It is built for markets that keep bouncing rather than trending. CryptoBot runs it on your own exchange account and lets you test it in Demo mode first.
How a grid bot earns
N lines make N−1 grids, the gaps between them. One grid is a buy at its lower line closed by a sell at its upper line. That round trip is the only thing the bot earns from, so profit depends on the price crossing your levels repeatedly.
The fee rule
Every fill costs a fee and a grid trade has two fills. At 0.10% per fill, a round trip costs about 0.20%, so a grid only profits when its step is wider than that. Take a range of 90,000 to 100,000 with 11 lines: that is 10 grids with a step of 1,000. Around a price of 95,000 the step is about 1.05%, which leaves about 0.85% per completed grid after fees. Make the lines twice as dense and the step falls to about 0.5%, so fees take a far bigger share. The example is only an illustration of the arithmetic, not a forecast.
The settings you control
- Range and number of lines: where the grid starts and ends, and how dense it is.
- Arithmetic or geometric spacing: equal price gaps, or equal percentage gaps. Geometric suits wide ranges because each grid keeps the same percentage profit.
- Long or neutral: a long grid starts flat and only places buys below the price. A neutral grid also places sells above it and starts already holding some coins. Both are available on a spot account; short and hedge grids need a futures account.
Backtest and Optimize
You do not have to guess the density. The built-in backtest shows how a grid would have done on past prices, and the Optimize tool compares different grid densities so you can find one that clears fees with room to spare. Then run the bot in Demo mode before you copy it to Real.
The risk to understand
If the price leaves your range, the grid stops working. Below the range you hold coins that have lost value; above it you have sold everything and are no longer earning. Choose the range deliberately and check it against where the market has actually traded. Grid bots explained goes through this in more detail.
Learn the grid bot step by step
- How to create a grid bot, step by step: the whole form from market to Start.
- Long, Neutral, Short and Hedge grids: which type fits which market.
- Range and density: fees, geometric vs arithmetic, backtest and Optimize.
- Stop loss, take profit and protection: what a grid does when the market breaks your plan.
- Interval, Infinite and Infinity grids: what Grid size means.
Exchanges and API key safety
The bot places orders through your API keys on Binance, Bybit, XT.com or Nobitex, and your funds stay on the exchange. Create the key with trading permission only and leave withdrawals disabled.
Common questions
How many grid lines should I use?
Enough that each step is clearly wider than the round-trip fee, and not so many that your funds are spread too thin. Use the backtest and the Optimize tool to compare densities on past prices.
Arithmetic or geometric grid?
Arithmetic spacing uses equal price gaps and suits narrow ranges. Geometric spacing uses equal percentage gaps and suits wide ranges, because every grid keeps the same percentage profit.
What happens if the price leaves the range?
The grid stops working. Below the range you are holding coins that have lost value, and above it you have sold everything and earn nothing until the price returns.
Is a grid bot better than a DCA bot?
Neither is better in general. A grid bot suits a market that moves sideways; a DCA bot suits one that dips and then recovers. Pick by the market you expect.