Grid bot

A grid bot is a trading bot that places a ladder of buy and sell orders across a chosen price range and earns from price swings: it buys one step lower and sells one step higher, again and again.

How a grid works

The trader sets the lower and upper bounds of the range, the number of levels and the amount. The bot splits the range into steps, placing buy orders below the current price and sell orders above it. When the price dips and fills a buy, the bot immediately places a sell one level higher. When the price rises and a sell fills, it places a buy one level lower. Each buy-and-sell pair earns the size of one grid step minus fees. The more often the price swings up and down inside the range, the more such cycles there are.

Settings

The step can be arithmetic, the same in money terms, for example every 2 USDT, or geometric, the same in percentage terms, which suits wide ranges better. A step that is too small produces many trades, but fees eat most of each cycle's profit; a step that is too large means rare trades. The step should be well above twice the trading fee. Capital is split across the levels, so each step gets only a small part of the total. There are also futures grids with leverage, but they come with a liquidation price, and losses grow faster once the price leaves the range.

When a grid loses

A grid makes money only in a sideways market. If the price falls below the range, the bot buys the entire decline and ends up holding coins bought above the market, in effect a losing position with no stop-loss. If the price breaks above the range, the bot sells everything on the way up and then sits without coins, missing the rally, so its profit is smaller than that of a simple holder. The small income from cycles is easily wiped out by one strong trend. So decide in advance what to do if the price leaves the bounds: stop the bot, shift the range or set a stop.

Who it suits

A grid bot is a tool for a market moving within a corridor, and for people who understand that results are determined by the choice of range rather than by the bot itself. The high annual returns displayed on ready-made grid presets are usually calculated over a short lucky period and promise nothing for the future. Before launching, it helps to test the settings on historical data and start with a small amount. This is not investment advice.

Example

The range for a hypothetical coin is 90 to 110 USDT with a 2 USDT grid step and 100 USDT per level. The price oscillates between 98 and 104: the bot buys at 98 and 100, sells at 100 and 102, and so on. Each cycle yields about 2% minus 0.2% in fees. But if the price falls to 80, the bot is left holding coins bought at 90 to 98, and the loss exceeds all the profit earned from the cycles.

Related terms

Trading botSideways MarketLimit OrderVolatilityMaker and takerLiquidation price

On the site

TradingFutures calculatorOptions levelsHyperliquid

This article was written by AI. Check specific rates, taxes and broker terms with primary sources.

↑ Top