Futures Grid Trading Strategy
For futures grid trading, the main extra risk is leverage. Keep grid spacing, position size, and liquidation distance aligned before letting the strategy manage repeated entries.
A grid-like strategy with dynamic trading targets and integrated trailing for both buying and selling. You can use it as a DCA short bot or trade both directions.
The strategy stays in a position, averages down when price drops, and takes profit when price moves above break-even. It does this with a minimal set of settings. You can use market or limit orders.
This strategy is essentially the same as "spotgrid," but built for futures and with an added option to trade shorts.
tip
This strategy is different from other Gunbot strategies: there are only a handful of options, and it is "always in position." Instead of waiting for a perfect entry, it continuously looks for chances to average down.
If you want to customize settings a lot, this strategy is not for you.
Trading behavior
When you run futuresgrid on a pair in an uptrend, expect behavior like this:

Let's break down what actually happens:
- When the strategy first runs and there is no balance to sell, it immediately places a market buy order.
- If price goes down and crosses the futuresgrid line on the chart, buy trailing activates. When trailing finishes, a buy order is placed and the break-even price moves lower.
- If price reaches the sell target on the chart, sell trailing activates and the full position is sold at profit when trailing finishes.
- After selling, the strategy immediately starts buy trailing. If price goes up, it quickly opens a new position; if price goes down, it places a buy order below the last sell rate.
You will see that the first few buy orders happen fairly quickly when price starts going down. After a few trades, the price distance between buy orders gets much bigger. All targets are set automatically.
Adding to a long as ETH falls

Follow the green buy markers from left to right. The first few are close together. Farther down the chart, the bot buys around 1,850, 1,760, 1,680, 1,530, and 1,420 USDT. Every buy adds ETH to the position and brings the average entry down. Look at the labels on the right, though. ETH is still around 1,531 USDT, well below the break-even line at 1,766 and the sell target at 1,790. You can see where the bot bought from this chart. To see the size of the position and what it did to equity, you need the fills and the equity curve.
FuturesGrid can keep adding until it reaches MAX_BUY_COUNT, hits the applicable position cap, or runs out of available funds. If price reaches the sell target and trailing finishes above break-even, the strategy places a sell order.
tip
The next trading targets are always visible on the chart.
Keep in mind the target lines move over time; they represent the current targets.
How much difference does the buy limit make?
To see what happens when you let the bot buy more times, we ran Futures Grid through the August 2–9, 2024 ETH sell-off twice. Both Gunbot Live backtests used 15-minute Binance ETHUSDT perpetual candles. We started flat with 1,000 USDT and used long-only entries of 200 USDT, 3× leverage with cross margin, one-way mode, and a 0.05% fee per fill. The only setting we changed was Max buy count (MAX_BUY_COUNT). All dates and times are UTC.

| Result | 3-buy cap | 10-buy cap |
|---|---|---|
| Buy fills | 3 | 8 |
| Largest open position | 0.189 ETH | 0.549 ETH |
| Average entry after the last buy | 3,182.18 USDT | 2,915.40 USDT |
| Maximum equity drawdown | 18.8% | 40.0% |
| End-of-test equity | 889.53 USDT | 824.95 USDT |
| Simulated trading fees paid | 0.30 USDT | 0.80 USDT |
The first three buys were identical. The run with room for ten buys added five more, with the last fill at 2,321.88 USDT on August 5. That brought the average entry down by about 267 USDT, but the bot was now holding nearly three times as much ETH. When a candle closed at 2,187.61 later that day, both runs hit their worst drawdown. Neither position closed during the test, so the losses you see in the equity chart were still unrealized at the end.
What a rebound looks like
Now start the same 10-buy setup on August 6, after the sharpest part of the sell-off. This run covers August 6–13, so the dates overlap, but the bot starts fresh with 1,000 USDT and no open position. This time it closes 15 positions and finishes with 1,067.74 USDT in equity, up 6.77%. The account realizes 68.15 USDT after trading fees, and the last open position is down 0.40 USDT.
Look at the position that opens on August 7. The bot buys at 2,468.18, 2,388.78, and 2,346.41 USDT, bringing the position to about 0.250 ETH at an average entry of 2,400.07 USDT. Early the next day, it sells the whole position at 2,454.43 USDT. That round trip adds 12.98 USDT to the balance after fees on all four fills. You can see the jump in the dashed line just after August 8 starts.
What changes at 9× leverage?
First, change just the leverage. With 200 USDT orders, the 3× and 9× equity lines sit right on top of each other. The bot buys the same amount of ETH each time, so the difference shows up in the margin it uses.
Then raise the order size to 600 USDT at 9×. Each entry still takes about 66.67 USDT in initial margin, just like a 200 USDT entry at 3×. Now the bot holds three times as much ETH after each buy. Follow the orange line through August 12. It finishes the test higher, with a 20.32% equity gain, but the dips are deeper too.

| Result | 3×, 200 USDT entries | 9×, 200 USDT entries | 9×, 600 USDT entries |
|---|---|---|---|
| End-of-test equity | 1,067.74 USDT | 1,067.74 USDT | 1,203.23 USDT |
| Peak margin used | 271.57 USDT | 90.52 USDT | 271.57 USDT |
| Maximum equity drawdown | 2.75% | 2.75% | 7.55% |
| Simulated trading fees paid | 5.94 USDT | 5.94 USDT | 17.81 USDT |
Try the comparison in Gunbot Live
Open the futures backtesting guide and look for Futures Grid in the Backtesting strategy picker. Simulator mode is for spot trading. Keep the dates, market, and fees the same when you compare settings. Find the buys and exits in the trade ledger, then look at what happened to equity while those positions were open.
The examples above include simulated trading fees. Funding was disabled, and the fills include no separate adjustment for spread or slippage.
FuturesGrid settings
Balance settings
| Label | Config Parameter | Default Value | Detailed Description |
|---|---|---|---|
| Trading limit | TRADING_LIMIT | 20 | The base amount you invest for each individual buy order. |
| Max buy count | MAX_BUY_COUNT | 10 | Limits the maximum position size. When the maximum count is reached, the strategy shifts to sell mode only. Setting this to 15, for instance, means that the total position size may not exceed 15 times the amount set as the 'Trading limit'. |
| Max open contracts (long) | MAX_OPEN_CONTRACTS | 0 | Sets the upper limit for the position size of a futures long position, expressed in quote units. Subsequent orders that would exceed this limit will not be executed. |
| Max open contracts (short) | MAX_OPEN_CONTRACTS_SHORT | 0 | Similar to the long position setting, this controls the maximum size for futures short positions, also expressed in quote units. Orders that would surpass this cap will not be placed. |
| Leverage | LEVERAGE | 0 | Selects the target leverage level for your positions. Setting this to 0 applies cross margin. Note: Leverage options vary based on the exchange, including Binance Futures and other supported futures exchanges. |
Customize targets
| Label | Config Parameter | Default Value | Detailed Description |
|---|---|---|---|
| Period | PERIOD | 15 | Configures which candle period is used to determine auto step size and trailing range. A lower period value typically results in more frequent trading but also increases risk. |
| Direction | DIRECTION | LONG | Choose from LONG, SHORT, or AUTO for your trading direction. Selecting LONG will prioritize long positions even if you currently hold a short position, and it will remain until the position can be closed at a profit. In AUTO mode, the strategy assesses the direction based on trends identified on 4-hour and 15-minute charts. When the trend is unclear, no new positions will be initiated. |
| Trend variant | TREND_VARIANT | legacy | Choose a trend source when in AUTO mode: - Legacy: Uses the strategy timeframe plus 1-hour and 4-hour data. - 4h: Uses only 4-hour data. - 1h_15m: Combines data from 1-hour and 15-minute charts. - Custom: Allows for a user-defined trend source. How to use: - Set the override input CUSTOM_DIRECTION. Trading logic is identical to the 4h variant; only the direction is fixed by this override.- 1 - force long-only mode.- 0 - trade in both directions.- -1 - force short-only mode. |
| Auto gain | AUTO_GAIN | True | Activates a dynamic profit target based on the distance between support and resistance levels. The minimum profit is set to twice the trading fees, adjusting lower as position size increases. This setting overrides any manually set profit targets. |
| Gain | GAIN | 0.5 | Manually sets a profit target. When the price reaches this target percentage above the break-even point, a sell order is triggered. This is expressed as a percentage increase from the break-even point. |
| Grid multiplier | GRID_MULTIPLIER | 1 | Adjusts the distance between buy orders. A default value of 1 means standard levels are used. Increasing the multiplier (e.g., to 1.5) increases the distance proportionally, whereas decreasing it (e.g., to 0.5) reduces the gap. |
Trailing settings
| Label | Config Parameter | Default Value | Detailed Description |
|---|---|---|---|
| Use buy trailing | USE_BUY_TRAILING | True | Enables price trailing for long orders, letting you potentially benefit from continued price increases after an order is placed. |
| Use custom buy trailing range | USE_CUSTOM_BUY_TRAILING | True | Activates the option to set a specific trailing percentage for buy orders, overriding the default trailing settings. |
| Custom buy trailing range | BUY_TRAILING_PCT | 0.2 | Sets a custom trailing range for buy orders. For example, a setting of 0.2% will create a trailing range of 0.2% below the current price, allowing for dynamic adjustment as prices fluctuate. |
| Use sell trailing | USE_SELL_TRAILING | True | Enables price trailing for short orders, which can help in maximizing profit from price drops after placing an order. |
| Use custom sell trailing range | USE_CUSTOM_SELL_TRAILING | True | Allows for the setting of a specific trailing percentage for sell orders, giving you control over how aggressively to trail price movements. |
| Custom sell trailing range | SELL_TRAILING_PCT | 0.2 | Defines a custom trailing percentage for sell orders. Setting this to 0.2% establishes a trailing range that adjusts dynamically, 0.2% above the current price, optimizing the timing for exiting positions. |
Advanced
| Label | Config Parameter | Default Value | Detailed Description |
|---|---|---|---|
| Trading limit multiplier | TL_MULTIPLIER | 1 | Adjusts the investment amount for each consecutive buy order. For example, with a trading limit of 100 USDT and a max buy count of 3:- Multiplier of 1: Each order is 100 USDT. - Multiplier of 1.5: First order is 100 USDT, second is 150 USDT, third is 225 USDT. - Multiplier of 2: First order is 100 USDT, second is 200 USDT, third is 400 USDT. |
| Minimum buydown | MIN_BUYDOWN | 0 | Sets a minimum percentage distance between orders that increase a position, acting as an override to preset buydown levels. Setting this to 0.6% ensures a minimum gap of 0.6% between such orders. |
| Keep 1x TL | KEEP_ONE_TL | False | When enabled, maintains an open position equivalent to 1x the trading limit after partially or fully closing a position, preventing immediate re-entry into the market. |
| Stop after next sell | STOP_AFTER_SELL | False | Halts trading activities after the current holding is completely sold, preventing new buy trades during times when there is no balance available to sell. |
| Buy enabled | BUY_ENABLED | True | Lets you enable or disable placing of long orders. Closing existing long positions remains possible even when buying is disabled. Typically, allowing continuous trading leads to better strategy performance. |
| Sell enabled | SELL_ENABLED | True | Lets you enable or disable the placing of short orders. Closing existing short positions is still possible even when selling is disabled. Generally, continuous trading improves the strategy's effectiveness. |
| SMA period | SMAPERIOD | 50 | Defines the number of candles used to calculate support and resistance levels. These levels are important for setting buydown targets and determining trailing ranges. The default setting of 50 typically does not require adjustments. |
| Keep quote | KEEP_QUOTE | 0 | Specifies the amount of quote units to retain in your balance. For example, setting this to 0.01 in a USDT-BTC pair makes sure that the last 0.01 BTC is not sold. |
| First order delay | FIRST_ORDER_EXTRA_DELAY | 30 | Adds an additional delay after opening a new trade to prevent multiple orders in quick succession, especially useful if the exchange is slow to update balances. |
tip
Other parameters
Watch mode is respected.
Besides settings mentioned on this page, no other strategy setting has any effect on futuresgrid.