Skip to main content

Grid Trader Bot

Use this bot to automatically trade within a price range by placing multiple buy and sell orders at calculated price levels

Updated over 2 weeks ago

Overview

The Quad Grid Trading bot creates a grid of buy and sell orders within a specified price range. When price moves up and hits a sell order or down and hits a buy order, the bot automatically places new orders to maintain the grid structure. This strategy works well in sideways markets where prices oscillate within a range, allowing you to profit from these movements while providing market liquidity.

The bot offers two operating modes:

  • Automatic Mode: Intelligently calculates grid boundaries and spacing based on market volatility

  • Manual Mode: Allows you to specify exact price boundaries and grid parameters

Details

Grid trading divides a price range into multiple levels where buy orders are placed below the current price and sell orders above it. As orders get filled, the bot places new orders on the opposite side, maintaining the grid structure. For example:

  • If price drops and hits a buy order at $19,800, that order is filled and a new sell order is placed above

  • If price rises and hits a sell order at $20,200, that order is filled and a new buy order is placed below

This creates a continuous trading cycle that can generate profits in sideways markets while providing liquidity.

How to Configure the Grid Trader

General Settings

  • Exchange Platform: Select your preferred exchange

  • Trading Account: Choose the account for bot operations

  • Market: Select the trading pair (e.g. BTC/USDT)

  • Total Cash to Spend: Maximum amount of quote currency to use for the strategy

Strategy Mode

Choose between:

  • Automatic: Bot calculates optimal grid parameters based on market conditions

  • Manual: You specify exact grid parameters

Advanced Auto Settings

When using Automatic mode, you can configure:

Grid Spacing Type:

  • Linear: Equal price distance between grid levels

  • Logarithmic: More dense near current price, wider at extremes

  • Capital Distribution:

  • Equal: Same order size at all levels

  • Weighted: Larger orders near current price

  • Volatility Multiplier: Controls grid width (0.5-5.0)

  • Higher values create wider grids

  • Lower values create tighter grids

  • Volatility Period: Number of days to calculate volatility (1-30)

  • Trend Bias: Optionally adjust order sizes based on detected market trend

  • Grid Rebalance Period: How often to reset the grid (in hours)

  • Profit Target: Optional percentage to take profits

  • Number of Grids: Total number of grid levels (2-50)

Manual Mode Settings

When using Manual mode, you specify:

  • Upper Bound Price: Highest price for the grid

  • Lower Bound Price: Lowest price for the grid

  • Number of Grids: Total number of grid levels

  • Risk Management: What to do when price exits the grid:

  • Do Nothing: Wait for price to return

  • Infinity Grid: Reset around current price

  • Stop Bot: Terminate operation

Frequently Asked Questions

How does Automatic mode work?

In Auto mode, the bot:

  1. Analyzes market volatility over the specified period

  1. Sets grid boundaries based on volatility and multiplier

  1. Places orders according to the chosen spacing and distribution

  1. Optionally adjusts for market trends

  1. Automatically resets the grid when price moves out of bounds

How much capital do I need?

The capital requirement depends on:

  • Number of grids (more grids = more capital needed)

  • Price range width (wider range = more capital needed)

  • Capital distribution method (weighted may require more capital near current price)

The bot will calculate and display the estimated capital requirement based on your settings.

What happens when price moves outside the grid?

  • In Auto Mode: The bot automatically resets the grid around the current price (Infinity Grid)

  • In Manual Mode: Follows your selected risk management strategy:

  • Do Nothing: Waits for price to return

  • Infinity Grid: Resets around current price

  • Stop Bot: Terminates operation

When should I use Weighted vs Equal distribution?

  • Weighted: Better for volatile markets as it concentrates capital near the current price

  • Equal: Better for stable markets where price moves evenly within the range

How often should I rebalance the grid?

  • For volatile markets: Consider shorter periods (4-12 hours)

  • For stable markets: Longer periods (24+ hours) may be sufficient

  • Set to 0 to disable automatic rebalancing

Can I use this bot in trending markets?

While grid trading works best in sideways markets, the bot includes features to adapt to trends:

  • Enable Trend Bias to adjust order sizes based on detected trends

  • Use Logarithmic spacing to place more orders near current price

  • Set appropriate rebalance periods to adjust to changing market conditions

Remember that grid trading involves actively managing multiple orders and requires sufficient capital on both sides of the market. Always start with small sizes while learning how the strategy performs in your chosen market.


​

Did this answer your question?