Grid Bot

Every price swing puts your grid to work.

Grid Bot divides a price range you choose into levels, with buy orders below the price and sell orders above it. Each buy is paired with a sell one level higher, and the difference, after fees, is recorded as profit.

Grid Bot BTC / USDT Spot grid Running
Grid profit
+0,00 USDT
Unrealized P&L
0,00 USDT
Time inside range
%100
5 of 5 days
Investment
1.000,00 USDT
6 levels
Range
80.000 – 84.000
800 USDT apart
BTCUSDT82.00015m1h4h1D

Inside the range.

Profit and loss, USDTRealized +0,00Unrealized 0,00Total 0,00

  • Pending buy
  • Pending sell
  • Level with no order
  • Average cost
  • Filled buy
  • Filled sell

Illustrative view, drawn in the Trading Academy with sample BTC/USDT data and a 0.1% fee per order. The figures are an example, not a promise of returns.

How it works, by example

Five days in five steps

In this example, a spot grid runs on BTC/USDT with a 80,000–84,000 range, 6 levels and 1,000 USDT. Grid Bot does not try to predict the price: it buys when the price falls to a level and sells the same amount when it rises to the next level up. Choose a step, or drag the timeline below to see each hour on its own.

Trade log
TimeSideLevelQuantity, BTCFeeNet profit
Realized profit
Fees paid
Still held
Open position result

The settings in this example are fixed. In the next section, you change the range, the number of levels, the investment and the fee, and see what would have happened over the same five-day price move.

With your own settings

How a level pays

Each round trip earns the gap between two levels, minus the fees on both orders. When you change the values, the result of one matched trade and what would have happened over the five days above are recalculated at once.

The starting values match the example above.

Grid type
From the nearest buy level to the level above
Level spacing
Amount per level
Quantity bought
Gross gain
Fees on both orders
Net profit

Orders placed at the start

The same five days with your settings
Filled orders
Matched buys and sells
Fees paid
Realized profit after fees
Open position result

The price move is illustrative: a five-day sample with hourly candles. Actual results depend on the market, the order in which orders fill and your exchange's fee rate.

When the number of levels changes

Below, with the same range, investment and fee, you can see how one matched trade and the realized profit over the same five days change with the number of levels. The highlighted row is your value.

LevelsNet per tradeNet ÷ feesMatched tradesRealized profit in five days

Minimum net profit per level

Grid Bot expects the net profit of a matched trade to be at least twice the fees on its two orders. Find the best range does not suggest candidates below this floor and warns you when a level count falls under it. More levels mean more frequent trades, but each trade earns less and fees take a larger share.

Setup

Choosing a range

The bot only trades between the lower and upper price. A range that is too narrow leaves the bot idle once the price moves outside it; one that is too wide spreads the levels thinly. Two tools help you choose.

Find the best range

  1. It looks at roughly the last two months of the selected symbol, using thirty-minute candles.
  2. It draws four candidate bands from the price distribution: the bands that held the price 90%, 80%, 70% and 60% of the time. It centres each one on today's price and tries both point and percent spacing.
  3. It tests each candidate in three separate past periods, building it only from the data before that period, so no candidate is measured with knowledge of its own future.
  4. Candidates are ranked by the middle value of their realized profit across the three periods plus half of their worst unrealized result. A candidate is dropped if it trades too rarely in any period or if its net profit does not reach twice the fees.
  5. It updates the range and the type and leaves your level count unchanged. If no candidate qualifies, it tells you that the symbol has not looked suitable for a grid recently.

The Grid-suitable filter

The Grid-suitable filter in the scanner checks whether a symbol suits a grid. It does not measure returns. Using hourly candles, it looks at the past 24 hours through two measures together:

≥ %1,5
Average swing: the gap between each hourly candle's high and low as a share of its close. It must be at least 1.5%; below that, the levels are crossed too rarely.
≥ 5
Sideways movement: how many times the price crossed the midpoint of its 24-hour range. It must be at least 5; fewer crossings mean the price is heading in one direction.

Looking at the swing alone would mislead, because a symbol falling sharply also moves a lot. The result is recalculated every day.

Level spacing

Equal points or equal percent

The grid type sets how the levels are spread across the range.

Example: a 60,000–100,000 range with 8 levels

Equal points

The gap between levels is a fixed amount in USDT. It is simple and easy to read in narrow ranges. In a wide range, the percentage gap at the lower levels is larger than at the upper ones.

Equal percent

The ratio between levels is fixed, so each level sits the same percentage above the one below. In wide ranges, the profit percentage per level stays the same throughout.

In a narrow range, both types produce almost the same levels. As the range widens, equal percent spreads them more evenly. The Find the best range tool tries both types and saves the better one in your settings.

Limits

Stop loss, take profit and trigger price

All three settings are optional. Leaving a field empty turns that setting off.

Stop loss %

A percentage of your investment. It triggers when realized profit plus unrealized profit and loss reaches a loss of that size. On a 1,000 USDT investment, 5% means a total loss of 50 USDT.

Take profit %

Take profit is also a percentage of your investment. It triggers when realized profit plus unrealized profit and loss reaches a gain of that size.

What happens to the position

The bot's orders are cancelled and the bot stops. You choose during setup what happens to the position:

What should happen to the position when stop loss or take profit triggers?

Close the position

The bot's orders are cancelled and the position is closed at the market price.

Keep the position

The bot's orders are cancelled. The position stays open and you manage it.

The protective order at the exchange

When you set a stop loss, the bot also places a protective order at the exchange. It is placed at the price where your loss would reach one and a half times your stop loss limit, and it is meant to act only when the bot's own check cannot, for example if the connection drops. In spot, it can be placed when you hold coins that are not committed to sell orders, or when Protection first is selected.

Trigger price

The bot does not set up immediately; the grid orders are sent when the price reaches the trigger. A trigger below the starting price fires when the price falls to it, and one above fires when the price rises to it. Use it to wait for a particular price zone.

Market

Spot and futures

Grid Bot can run in both spot and futures markets. If a symbol trades in both, you choose the market before you set the bot up.

TopicSpotFutures
What is tradedThe coin itself.A leveraged contract.
LeverageNone.From 1 to 20, with 3 as the default. The bot uses isolated margin, so its losses do not spread to the rest of your wallet.
Order per levelInvestment ÷ number of levels.Investment × leverage ÷ number of levels. The investment serves as margin, and leverage magnifies profit and loss in equal measure.
Sell levelsPlaced for as much of the coin as you hold. With Let the grid build it, the upper levels start empty and fill as buys complete; with Buy it upfront, the missing coin is bought at the market when the bot starts.No coin is needed. Levels below the price open long positions and levels above it open short positions.
LiquidationNot applicable.The panel shows the estimated liquidation price for a fall and for a rise, assuming every buy level or every sell level fills. If it falls inside the range, the panel suggests lowering the leverage or narrowing the range.

Long, short and neutral

Grid Bot has no separate long, short or neutral mode. In futures the grid works in both directions: buy orders below the price open long positions and sell orders above it open short positions. As the price falls, the position leans long; as it rises, it leans short; it rebalances as the price returns to the middle of the range. This matches what other platforms call a neutral grid.

Protection

Trend protection

A grid works best in a market moving sideways. When the price moves firmly in one direction, the lower levels fill one after another or the sells run out early. Trend protection measures this and responds in the way you choose.

1234
  1. 1The price moves back and forth inside the range; the grid runs with buy and sell orders.
  2. 2The average of the past 24 hours has moved more than 5% from the 24 hours before; the bot measures this as a trend.
  3. 3The grid orders are cancelled. With Pause selected, the position is kept.
  4. 4The market moves sideways again; the grid is set up afresh at the current price.

How the bot measures a trend

  1. The bot takes the average closing price of the last 48 thirty-minute candles, roughly the past 24 hours.
  2. It compares that average with the same average 48 candles earlier.
  3. If the difference is 5% or more, the market counts as trending; otherwise it counts as sideways.
  4. The check repeats on every cycle while the bot runs. If candle data cannot be read at that moment, the bot makes no decision, keeps its orders in place and continues once the data returns.

If the market is trending when you start the bot, the bot is set up but no grid orders are sent; the grid is placed once the market moves sideways.

If a trend begins

Cancels the grid orders when a strong trend begins; choose below what happens to the position.

Pause

The grid orders are cancelled and your position is kept; a stop loss order already waiting at the exchange stays in place. The grid is set up again once the market moves sideways.

Close position

The grid orders are cancelled and the position is closed; any loss is realised at that moment.

With Pause selected, a protective order waits at the exchange only if you set a stop loss. Without one, the bot does not close the position until the market moves sideways again.

Risks

If the price leaves the range

While the price is outside the range, the bot places no new levels and the panel shows that it is waiting. When the price returns, the bot carries on where it left off. What you hold in the meantime depends on the market and the direction:

CaseSpotFutures
The price rises above the upper limitThe sell levels have filled and the coins have been sold, leaving you with USDT. If the price keeps rising, you do not share in that rise.The sell levels have opened short positions. As the price keeps rising, the loss grows and, with leverage, the price can approach the liquidation level.
The price falls below the lower limitThe buy levels have filled, leaving you with coins bought at higher prices. As the price keeps falling, the unrealized loss grows.The buy levels have opened long positions. As the price keeps falling, the loss grows and, with leverage, the price can approach the liquidation level.

Before you start

  • Grid Bot cannot promise a profit. It is designed for sideways markets and can lose money in a sharp one-way move.
  • A stop loss is the only way to limit the loss. Without one, the bot does not close a position outside the range on its own.
  • In futures, the exchange can liquidate the position if your margin runs short. This can happen before the stop loss acts; in a fast market, liquidation may come first.
  • The percentages on screen are backtest results, not a record of earnings. A setting that worked in the past is not guaranteed to work in the future.

Notifications

Why a bot stops

When a bot stops, the panel shows why: what happened, when it happened and what you can do now. If orders or a position remain at the exchange, the option below the notice closes what is left in one step.

ReasonWhat happens
You selected StopThe orders are cancelled. You choose whether to close the position or keep it; if you keep it, a new bot on the same symbol can start once the position is closed.
Stop loss or take profitThe orders are cancelled and the position is closed or kept, as you chose.
Trend protectionWith Close position selected, the position is closed and the bot stops. With Pause selected, the bot does not stop; it waits for a sideways market.
Liquidation or auto-deleveragingIf the exchange closed or reduced the position because the margin ran short, the bot stops and its own orders are cancelled.
Trading outside the botIf the symbol was traded outside the bot and the account no longer matches the bot's records, the bot stops rather than trade with the wrong quantity.
Exchange rejectionFor a rejected API key, insufficient margin, the exchange's open-order limit, a quantity below the minimum order size or an unsigned futures agreement, the panel states the reason and how to resolve it.

Where it runs

Web, desktop and the Academy

You can set up Grid Bot in the web terminal or in the desktop app. They are separate bots and run in different places.

TopicWebDesktop
Where the bot runsIn the cloud.On your own computer, inside the terminal.
When your computer is offThe bot keeps running.The bot stops. Level tracking, counter orders and the stop loss and take profit checks run while the terminal is open; when it is closed, only the protective order waits at the exchange.

Try it in the Trading Academy

In the Trading Academy, no orders reach the exchange; you practise with real prices and fees deducted, and no API key is needed. On the web, an Academy bot also runs in the cloud and keeps going while your computer is off. The Academy does not simulate order book depth, queue position, partial fills or exchange rejections, so live results may differ.

Three environments

  • Academy: no orders reach the exchange; the bot trades a virtual balance.
  • Testnet: the exchange's separate test system, with its own API key; the money is not real.
  • Live: real trades with your own money in your own account, after a separate confirmation.

Frequently asked questions

Questions before you start

  • Why is no order placed at a level very close to the price?

    Grid Bot places limit orders that are meant to wait in the order book. An order at a level within 0.2% of the current price would either fill at once or be rejected by the exchange, so the bot leaves that level empty at the start.

    This gap is a normal part of a grid: one level near the price always stays empty, with buy orders below it and sell orders above it. Once the price moves and an order fills at a neighbouring level, the counter order is placed at this level and it starts working.

  • What happens if the price is outside the range when I start?

    Orders are placed only at levels inside the range, and each level's side depends on the current price: levels below it get buy orders and levels above it get sell orders. If the price is above the upper limit, every level is below the price and the bot places only buy orders. No order is placed on the side outside the range, because there is no level there.

    If the price is below the lower limit, every level falls on the sell side; in spot, those orders can only be placed if you hold coin to sell. While the price is outside the range, the bot places no new levels and the panel shows that it is waiting. When the price returns, the bot carries on where it left off.

  • I see no sell orders at the upper levels when I start. Is something missing?

    No. In spot, the bot does not buy coin upfront by default; it buys as the price falls to the lower levels and sells as it rises to the upper ones. The upper levels starting empty is normal, and they fill in turn. If you want the sell orders open from the start, Buy it upfront buys the missing coin at the market when the bot starts.

  • How many levels should I choose?

    The number of levels is a choice between frequency and size. Fewer levels mean wider gaps and larger orders; more levels mean frequent but smaller trades. We recommend keeping the net profit of a matched trade at least twice its fees, and you can try your own values in the calculator on this page. Find the best range also suggests a level count based on the exchange's minimum order size, the fee share and the symbol's daily swing; applying it is up to you.

  • Does the stop loss look at the price or at profit and loss?

    At profit and loss. Stop loss and take profit are percentages of your investment and act on realized profit plus unrealized profit and loss. In futures, you can choose in the settings whether the decision uses the last price or the mark price, which the exchange also uses for liquidation.

  • If I choose Pause for trend protection, is my position protected?

    The position is not closed and the bot keeps watching it. However, a protective order waits at the exchange only if you set a stop loss. If you want the loss limited while the trend lasts, we recommend setting a stop loss.

  • Can I choose long or short for a futures grid?

    There is no separate direction setting. A futures grid works both ways: levels below the price open long positions, levels above it open short positions, and the position rebalances with the price on its own.

  • Does the bot keep running if I turn off my computer?

    A bot set up in the web terminal runs in the cloud and keeps going while your computer is off. A bot set up in the desktop app runs while the terminal is open; when the terminal is closed, only the stop loss order at the exchange remains in place.