# Futures Grid

Futures Grid lets you automate trading by placing a series of buy and sell orders within a defined price range - ideal when the market is moving sideways. Instead of manually buying low and selling high, the system does it for you continuously and efficiently.

### How it works

You define:

* A price range (Upper Bound → Lower Bound)
* The number of grid levels
* The capital (USDC) you want to allocate
* Optionally, a Trigger Price to start the bot only after price reaches a level you choose

The strategy then places orders at each grid level to:

* Buy when price dips
* Sell when price rises

{% hint style="info" %}
Futures Grid is most effective when price **oscillates** inside your chosen range. If price trends strongly up or down, a grid can underperform or incur losses.
{% endhint %}

#### Strategy panel

This is the Futures Grid configuration panel:

* Single Asset: Grid is run on a single market (e.g., BTC-USDC).
* Leverage (e.g., 5x): Controls exposure and liquidation risk.
* Buy/Long vs Sell/Short: Choose grid direction based on your market view.

### Long vs Short (what it means)

#### Buy/Long

Use when you expect the price to rise over time.

* The grid aims to buy lower and sell higher as price moves up and down.

#### Sell/Short

Use when you expect the price to fall over time.

* The grid aims to sell higher first, then buy back lower on dips.

### Configuration fields

#### Upper Bound

**Highest price** where your grid will place **sell** orders.

#### Lower Bound

**Lowest price** where your grid will place **buy** orders.

#### No. of Grids

The number of price levels between the bounds.

* **Arithmetic** = evenly spaced price levels (as shown in the UI)

> More grids = tighter spacing (more frequent trades, smaller per-trade moves).\
> Fewer grids = wider spacing (less frequent trades, larger per-trade moves).

#### Profit / grid

An estimate of per-grid profit. This is highly sensitive to:

* Grid spacing
* Slippage and fills
* Volatility regime

#### Quantity

The total capital (in USDC) allocated to the bot.

### Step-by-step: creating a Futures Grid

1. Select a market (e.g., BTC-USDC perpetual)
2. Choose Single Asset and set Leverage
3. Choose direction:
   * Buy/Long for bullish / mean-reverting up bias
   * Sell/Short for bearish / mean-reverting down bias
4. Set Upper Bound and Lower Bound
5. Set No. of Grids
6. Enter Quantity (USDC)
7. Click Create Strategy

### Practical guidance (non-advice)

These are general heuristics to help you think about grid settings:

* **Bounds should match the market regime**
  * If bounds are too tight: you’ll get chopped or pushed out of range quickly.
  * If bounds are too wide: capital may be underutilized.
* **Grid density should reflect volatility**
  * If grid spacing is smaller than slippage, the bot may churn without meaningful edge.
* **Leverage amplifies everything**
  * Higher leverage increases liquidation risk and drawdown sensitivity.

{% hint style="warning" %}
A grid is not a “set-and-forget profit machine.” It’s a *range strategy*. If price breaks out and trends, you can end up with directional exposure and losses.
{% endhint %}

### FAQ

#### Does Futures Grid work in trending markets?

It *can*, but it’s designed for sideways oscillation. In strong trends, it may accumulate exposure on one side and underperform.

#### Can I stop the bot anytime?

Yes — you can stop the strategy whenever you want. (Exact close-out behavior depends on how you exit; always review your open position after stopping.)

#### What’s the difference between Buy/Long and Sell/Short grids?

* Buy/Long: buys lower and sells higher
* Sell/Short: sells higher first and buys back lower

#### Why does “Profit / grid” show 0.00% sometimes?

If the grid spacing is too tight relative to slippage, the estimated net profit per grid can compress toward zero.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.defx.com/docs/trading-bots/futures-grid.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
