이 쪽은 한국어로도 볼 수 있습니다. 한국어로 보기
Fee discount

Live markets

All boardsCrypto screenerCrypto heatmapLive chartOrder book and tapeKimchi premiumExchange price gapsMulti chartWhale tradesFunding ratesOpen interestLong/short ratioLiquidationsOptionsFear and GreedBitcoin networkStablecoinsDeFiDominance and alt seasonWorld marketsForexCommoditiesRates and yieldsEconomic calendarCrypto news

Tools

All toolsPosition size calculatorRisk/reward calculatorKelly criterionRisk of ruin simulatorDrawdown recoveryLiquidation priceFutures PnLFunding feeTrading fee comparisonCompound growthGrid bot calculatorPivots and FibonacciCrypto converterKimchi arbitrage calculator

More

LessonsExchangesAbout
한국어English

Grid bot calculator

A grid bot banks one grid's spread each time price swings through it. Work out the profit per grid and the fee drag before you pick the number of grids.

LiveData: Binance
/USDT
Loading the live price
USDT
USDT
grids
There is one more price line than grids
Spacing
USDT
%
Binance spot, standard tier
Start price
USDT
Grids above the start price hold coin with sell orders; grids below hold buy orders
Inputs stay on this device.
Profit per grid, after fees-
Grid spacing-
Profit per round trip-
Quantity per order-
Coin bought at the start-
If price falls to the lower bound-
If price rises to the upper bound-
Lines and starting orders

Replay on recent prices

PriceGrid linesBuy fillSell fill
Round trips-
Grid profit-
Total PnL incl. holdings-
Holding the coin instead-
Replays Binance spot candles assuming price moved open, low, high, close (or open, high, low, close on red candles).

Grid price table

#PriceInitial orderQtyOrder valueGrid above, netGrid above, USDT
Prices are shown rounded to Binance's tick size. The line nearest the start price carries no order.

Method and a worked example

A grid bot splits a price range into grids and, in each grid, buys at the lower line and sells at the upper one. Every swing inside the range banks one grid's spread. There are two ways to space the lines.

Arithmetic: spacing = (upper − lower) / number of grids, the same price gap between lines.

Geometric: ratio = (upper / lower)^(1 / number of grids), the same percentage gap between lines.

Profit per grid = (1 − fee) × sell price / buy price − 1 − fee

Take the example from Binance's spot grid FAQ: upper 450, lower 400, 5 grids, a 0.1% fee. Arithmetic spacing is (450 − 400) / 5 = 10. The bottom grid (buy 400, sell 410) makes 0.999 × 410 / 400 − 1.001 = 2.30% and the top grid (440 to 450) 0.999 × 450 / 440 − 1.001 = 2.07%, so arithmetic grids earn less the higher they sit. Geometric spacing has a ratio of (450 / 400)^(1/5) = 1.02384, and every grid makes 0.999 × 1.02384 − 1.001 = 2.18%. The FAQ lists the arithmetic maximum as 2.29%, truncated at the third decimal.

Capital is split the way Binance does it, with the same quantity on every order. Lines below the start price get buy orders, lines above get sell orders, and the coin for those sells is bought at the start.

Quantity per order = investment / (sum of buy order prices + number of sell orders × start price)

Put 1,000 USDT into the arithmetic example and start at 423: the nearest line, 420, stays empty, buys sit at 400 and 410, sells at 430, 440 and 450. Quantity is 1,000 / (400 + 410 + 3 × 423) = 0.4810. The bot buys 1.4430 coins (610.39 USDT) at the start and parks 389.61 USDT behind the buy orders. One round trip in the bottom grid nets 0.4810 × 10 − 0.001 × 0.4810 × 810 = 4.42 USDT.

Outside the range the bot goes idle. Down at 400 every buy has filled; it holds 5 × 0.4810 = 2.4050 coins worth 962 USDT, a 38 USDT loss before fees. Up at 450 it has sold everything for 1,024.53 USDT and stops trading.

GridsGeo spacingGeo profitArith profit
102.03%1.83%1.65 to 2.02%
201.01%0.81%0.72 to 0.91%
300.67%0.47%0.41 to 0.54%
500.40%0.20%0.17 to 0.24%
1000.20%0.00%−0.02 to 0.02%

The table uses a 54,000 to 66,000 range and a 0.1% fee. More grids fill more often but earn less each time; below a spacing of (1 + fee) / (1 − fee) − 1, about 0.2%, every round trip loses money.

The replay feeds the last 7 days of 15-minute candles (or 30 days of hourly candles) from Binance spot through your settings. Inside each candle it assumes open, low, high, close on green candles and open, high, low, close on red ones. A live bot's fills depend on order and liquidity, and past results do not set future ones.

Sources: Binance, Binance Spot Grid Trading Parameters, Binance, What Is Spot Grid Trading and How Does It Work

Questions

How is grid bot profit per grid calculated?

(1 − fee) × sell price / buy price − 1 − fee. Geometric grids earn the same on every grid; arithmetic grids earn more on the lower ones.

Arithmetic or geometric?

Wide ranges usually go geometric. Split a wide range arithmetically and the top grids can earn less than half of the bottom ones. On a narrow range the two barely differ.

How many grids should I use?

Few enough that each grid clears the fees comfortably. At a 0.1% fee the spacing has to be wider than 0.2% to profit; a 0.5% spacing leaves about 0.3% per grid after fees.

What happens when price leaves the range?

Below the lower bound the whole investment ends up in the coin with an unrealized loss; above the upper bound everything has been sold for cash. Either way trading stops until price returns.

How reliable is the replay?

It uses real Binance candles but has to assume the price path inside each candle, so treat it as an estimate of how the same settings would have behaved over the last 7 or 30 days.