AI Hub

Trading Bot(Grid)

Published on 2026-01-06 08:12

What is Contract Grid

A contract grid is a quantitative trading strategy for automatically buying and selling perpetual contracts. A contract grid bot captures market volatility by automatically “buying low and selling high” within a preset price range.

In a contract grid, the system places orders above and below configured price levels to create an ascending and descending order grid. Grid trading performs best when the market is oscillating or consolidating and price moves within the set range. The strategy aims to profit from small price swings. More grids increase trading frequency but lower profit per order. Traders choose between high-frequency small gains and low-frequency larger gains according to their needs.

How to set up BitMart grid trading

BitMart grid trading currently supports U‑margin (USDT) contracts. You can customize grid parameters: set upper/lower bounds, grid count, and investment amount. After creating the grid bot, the system executes buy and sell orders at the preset prices automatically.

  • Log in to your BitMart account and go to AI Hub. Click Grid Bot to view running bots.
  • View bot details and click Copy to duplicate a bot, or click Customize Parameters to modify settings.
  • Alternatively, on the Contracts → U‑margin trading page switch to Robot to create a grid.
  • In the BitMart app: Contracts → Grid.
wg3.png
wg4.png

Parameter settings (required) Learn more

  • Select trading pair and configure grid parameters
  • Choose trading account (AI Hub account or Contract account)
  • Select grid direction (Long, Short, or Neutral)
  • Price range (grid lower bound, grid upper bound)
  • Grid count (modes: arithmetic, geometric)
  • Investment amount

Start/stop conditions (optional)

  • Start condition: grid trigger price
  • Stop conditions: take‑profit price, stop‑loss price, maximum drawdown percentage

Note: When a grid bot stops it will close all positions (default enabled; cannot be disabled currently).

Frequently Asked Questions

Differences between account types

Grid bots support AI Hub accounts and Perpetual (contract) accounts.

  • AI Hub account: Funds used for grid trading are moved into a segregated sub-account, fully isolated from your other perpetual positions. This simplifies risk management and is recommended for most users.
  • Perpetual (contract) account: Grid funds share margin with your existing cross-margin contract positions, so exposures interact. This is better suited for signal providers or advanced traders. Note: when you choose a Perpetual account, the bot’s funds are not included in AI Hub statistics.

What are Long, Short, and Neutral grid strategies?

Contract grid strategies are directional. Based on your market view (bullish, bearish, or sideways), choose one of three core modes: Long, Short, or Neutral. All three automatically “buy low, sell high” within a price range to capture volatility, but they differ in initial position and how profits/losses accrue.

Features

Strategy Initial position Primary market bias If price rises If price falls
Long grid Long position Sideways to upward Profit (close long) Loss (add long)
Short grid Short position Sideways to downward Loss (add short) Profit (close short)
Neutral grid No initial position Sideways / range-bound Open short (sell high) Open long (buy low)

How to understand “Arithmetic” vs “Geometric” grid spacing

When configuring grids, arithmetic and geometric spacing control how the price levels are distributed—either by fixed absolute price intervals or by fixed percentage intervals.

  • Arithmetic grid: each grid level has a constant price difference. Interval = (Upper price − Lower price) ÷ Number of grids. Best for low-price tokens or narrow ranges.
  • Geometric grid: each grid level increases by a constant percentage. Better for very wide ranges (e.g., BTC from $50,000 to $100,000) or highly volatile markets. It keeps the per-trade percentage return roughly consistent across price levels.

Check “per-grid profit”: regardless of spacing, look at the system’s estimated profit per grid. If post-fee profit is below 0.1%, your grid is likely too dense and returns will be minimal.

Risk notices

  • If market price moves beyond your grid’s upper or lower bound, the bot stops trading. A prolonged one-way move outside the band may leave held positions with floating losses or liquidation risk. We recommend placing stop-losses beyond the grid boundaries at sensible levels.
  • If the token is suspended, delisted, or encounters other unexpected trading halts while a grid is running, the strategy will be automatically stopped.
  • The following can cause new grid creation to fail:
    • On Perpetual accounts: the selected pair already has an isolated-margin position.
    • On Perpetual accounts: there are existing orders with inconsistent leverage for the pair.
    • In bi-directional position mode on Perpetual accounts: creating a Neutral grid is not allowed.
    • You’ve reached the strategy creation limit (maximum 50 contract strategies per user).

We recommend using the default AI Hub account when creating grid strategies.
 

2017-2026 © bitmart.com