Trading Bots

A Futures Grid bot instance

2023-06-14 12:48062

Creating a futures grid

1. Creating a bot

Min or max price: The price range in which the bot operates.

Number of grids: The number of grids in the price range (this affects the profit per grid).

2. Running the bot

When the price drops to the buy order price of a grid and the transaction is executed, the bot will place an order to close the long position on the upper grid.

When the price drops to the sell order price of a grid and the transaction is executed, the bot will place an order to open the long position on the lower grid.

3. Stopping the bot

All pending orders will be cancelled when the bot is stopped.

If “Close positions at termination” is enabled, all positions opened by the current futures bot will be closed with market orders when the bot is stopped. If it is not enabled, all positions will be left untouched in your futures account after the bot is terminated.

Futures Grid >>

A futures grid bot example (BTC/USDT trading pair)

Setting parameters

Grid type: Long

Lowest point: 50,000 USDT

Highest point: 100,000 USDT

Number of grids: 50

Pattern: Arithmetic sequence

Leverage: 2x

Fund available: 5000 USDT

Base order: Yes

BTC/USDT price at bot creation: 60,100 USDT.

Running the bot

Phase 1, initial maker orders: The prices of each grid are calculated as 50,000 USDT, 51,000 USDT, 52,000 USDT ... 98,000 USDT, 99,000 USDT, 100,000 USDT, and buy orders are placed with leverage set at 2x. With favorable market depth, buy orders above the market price will close, opening positions, then sell orders will be placed to close the positions at a higher grid.

So when the bot is put to work, there are buy orders in each grid in the 50,000 – 60,000 USDT range, and there are sell orders in each grid in the 62,000 – 100,000 USDT range.

Phase 2, the bot is running: If the market price falls below 60,000 USDT, the buy order in the relevant grid will be executed, and a sell order in the upper grid next to the 60,000 –61,000 USDT grid will be placed (i.e. at 61,000 USDT). If the price increases, a buy order will be placed in the lower grid after a sell order is executed.

In this way, orders are closed and placed repeatedly as the market fluctuates to make profit in volatile market conditions.

Disclaimer

Futures grid trading is a transaction tool. The abovementioned information should not be considered financial or investment advice from Bitget. Profits from futures grid trading may be impacted by one-sided market conditions or improper price intervals. You can adjust your futures grid trading bots according to market conditions. Your use of this tool is subject to your unconditional acceptance of all of Bitget's Terms and Conditions. You should be fully aware of the risks associated with cryptocurrency investments and proceed with caution. You agree that all investments on Bitget.com reflect your true investment intent, and you unconditionally accept the potential risks and gains of your investment decisions.