# Using Grid Bots on Mobile

### How to Set Up a Grid Bot？

#### Step 1: Create a Grid Bot

1. Log in to your exchange account.
2. Click on your **account avatar**.

<div align="left"><figure><img src="https://1790800155-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3kiM6CAFBZoTCJcZ8X7k%2Fuploads%2FGhEyNSkUH0spwsHaE6cs%2Fimage.png?alt=media&#x26;token=e5ee8677-0cfa-49c2-b9cc-94345e1f7eae" alt="" width="375"><figcaption></figcaption></figure></div>

3. Switch to the **Bots** tab, then click the **"+" icon** next to it.

<div align="left"><figure><img src="https://1790800155-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3kiM6CAFBZoTCJcZ8X7k%2Fuploads%2FdNvD4UiOHnAPnawo4tO1%2Fimage.png?alt=media&#x26;token=48a0bbbc-147d-4b9e-a3df-7cf7b5c72c87" alt="" width="375"><figcaption></figcaption></figure></div>

4. Enter a name for your bot (e.g., "SOL Grid Strategy").
5. Click **Add subaccount**.

<div align="left"><figure><img src="https://1790800155-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3kiM6CAFBZoTCJcZ8X7k%2Fuploads%2F7PjYACedVD2OczGRJcjd%2Fimage.png?alt=media&#x26;token=d4691622-ff60-4eb5-834a-bd6e6c5fa5ba" alt="" width="375"><figcaption></figcaption></figure></div>

***

#### Step 2: Fund Your Bot

Transfer funds to your bot subaccount using one of these methods:

* [Transfer funds from your main account](https://support.backpack.exchange/deposit-and-withdraw/crypto/deposit/how-to-deposit#deposit-via-subaccounts)&#x20;
* [Deposit from an external wallet into the subaccount.](https://support.backpack.exchange/exchange/deposit-and-withdraw/crypto/deposit/how-to-deposit)

***

#### Step 3: Activate the Bot

1. Enter your **bot sub\_account.**
2. Go to the trading interface and select **Futures Trading**.
3. Click the **bot icon** next to the trading pair, then toggle the bot **ON**.

<div align="left"><figure><img src="https://1790800155-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3kiM6CAFBZoTCJcZ8X7k%2Fuploads%2FZhHBBMwpw8wVcUXJsiGO%2F259c7d1040c150a3a0032ca284c34082.jpg?alt=media&#x26;token=800decf2-c437-460c-a78b-3efbdd0e2c86" alt="" width="563"><figcaption></figcaption></figure></div>

***

4. Set your **take-profit and stop-loss** levels.

> ⚠️ **Important:** Take-profit and stop-loss apply to the **entire bot subaccount**, not to individual grids.

**Stop-Loss**

Defines a drawdown threshold that will stop the bot when reached.

**How it works:**

* The bot tracks the starting equity of your subaccount from the moment the strategy is activated.
* If equity falls X% below the starting equity, the bot stops automatically.

**Example:** Starting equity is $1,500. With a 20% stop-loss setting, the bot stops if equity drops to $1,200.

<div align="left"><figure><img src="https://1790800155-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3kiM6CAFBZoTCJcZ8X7k%2Fuploads%2FoJVegcRhVIAyrqSXnUGM%2Fimage.png?alt=media&#x26;token=777ce407-e53d-4914-8408-2e50aff6581e" alt="" width="375"><figcaption></figcaption></figure></div>

**Take-Profit**

Defines an equity threshold that will pause the bot when reached.

**How it works:**

* The bot tracks the starting equity of your subaccount from the moment the strategy is activated.
* If equity rises X% above the starting equity, the bot pauses automatically.

**Example:** Starting equity was $1,000. With a 20% take-profit setting, the bot pauses when equity reaches $1,200.

<div align="left"><figure><img src="https://1790800155-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3kiM6CAFBZoTCJcZ8X7k%2Fuploads%2FuKkmArrjcb8qgb8sA4Xp%2Fimage.png?alt=media&#x26;token=1a4dcdd2-9baf-4b66-b4a8-128734d8afed" alt="" width="375"><figcaption></figcaption></figure></div>

***

**Auto-Close Positions**

If you want the position to close automatically when a take-profit or stop-loss level is reached, enable **“Close Position on TP/SL.”**

<div align="left"><figure><img src="https://1790800155-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3kiM6CAFBZoTCJcZ8X7k%2Fuploads%2FiRDQ83vM3tJ3ZJLCTiAa%2Fimage.png?alt=media&#x26;token=db0010d4-e305-4815-acb8-6e1f95bf89a9" alt="" width="375"><figcaption></figcaption></figure></div>

***

#### Step 4: Configure Parameters

1. Select your target trading pair (e.g., SOL-PERP) and adjust the **leverage** as needed.
2. Set the **Price Lower Limit** — The lowest price in your grid range.
3. Set the **Price Upper Limit** — The highest price in your grid range.
4. Enter the **Number of Grids** — How many price levels to create within the range.
5. Enter the **Total Grid Value** — The capital allocated to this grid.
6. Click **Create Grid** — The bot will begin running automatically.

> **Note:** More grids = more frequent trades with smaller price differences between levels. Fewer grids = less frequent trades with larger price differences between levels.

<div align="left"><figure><img src="https://1790800155-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3kiM6CAFBZoTCJcZ8X7k%2Fuploads%2FhI7LyDI9tQqYPPfIGJqE%2Fimage.png?alt=media&#x26;token=54124d5f-6b7c-4fd5-bd56-7f7b6a81fa51" alt="" width="375"><figcaption></figcaption></figure></div>

***

### Bot Management

#### Understanding Bot ON/OFF States

The ON/OFF toggle controls whether the bot is actively managing trades for the entire subaccount.

| State         | What Happens                                                                                                                                                                    |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ON(Active)    | <p>The bot actively executes trades according to your grid configurations.<br><strong>Important:</strong> You cannot manually trade in this subaccount while the bot is ON.</p> |
| OFF(Inactive) | The bot stops executing new orders. Existing pending orders remain but can be cancelled manually. You can trade manually in the subaccount.                                     |

<div align="left"><figure><img src="https://1790800155-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3kiM6CAFBZoTCJcZ8X7k%2Fuploads%2F0bMkezklyoFjfeAaUbFa%2F259c7d1040c150a3a0032ca284c34082.jpg?alt=media&#x26;token=cb759f1b-5432-4939-a45e-6ceb0c556ed5" alt="" width="563"><figcaption></figcaption></figure></div>

> ⚠️ **Key Point:** If the bot is ON but you have no active grids, no trading will occur. The bot needs at least one grid to execute trades.

> ⚠️ **Manual Trading Restriction:** You cannot manually place orders in a bot subaccount while the bot is ON. Turn the bot OFF first if you need to intervene manually.

***

#### Adjusting Grid Settings

To modify an active grid:

1. Go to the **Grids** tab.
2. Select **Edit**.
3. Adjust parameters such as:
   * Expanding or narrowing the price range
   * Pausing or restarting the grid

<div align="left"><figure><img src="https://1790800155-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3kiM6CAFBZoTCJcZ8X7k%2Fuploads%2FZYYoTzazISfvxh1sCnvM%2Fimage.png?alt=media&#x26;token=61dfbf7a-3321-44de-a91a-7a669fb364b1" alt="" width="375"><figcaption></figcaption></figure></div>

***

#### Deleting a Grid

1. Go to the **Grids** tab.
2. Select **Delete**.
3. Choose whether to close all remaining positions automatically.&#x20;

<div align="left"><figure><img src="https://1790800155-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3kiM6CAFBZoTCJcZ8X7k%2Fuploads%2FTDELGw4RSzMUmjoEAABc%2Fimage.png?alt=media&#x26;token=271a2db2-70a6-4382-995d-c3c0f388bf93" alt="" width="375"><figcaption></figcaption></figure></div>
