> For the complete documentation index, see [llms.txt](https://docs.goodcrypto.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.goodcrypto.app/goodcryptox-3.0/grid-bot/running-a-grid.md).

# Running a Grid

What a running Grid bot shows, how its trades and PnL are counted, and how to change or stop it.

Once goodcryptoX's Grid bot runs, you follow it in the Bots list on the Trade page and in its details, and you can change its range, levels, sizing, Follow, trailing exits and stops while it trades.

On **Trade**, open **Bots**, choose **Grid**, then click your bot. The row shows its mode, position, realized and unrealized PnL, and APR. **Trades** counts completed round trips; the filled-order count below it also includes openings. Click a heading to sort. The row offers **Stop** while the bot runs and **Copy** once it has stopped, then **Chart**. **Copy** fills the form with this bot's settings.

<figure><img src="https://3159525366-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrFKhEXxJL95YqC19XHlF%2Fuploads%2Fgit-blob-37ea1c179b88b8862da41d3cbc4225e88e9ee054%2Fgrid-running-1-bots-list.webp?alt=media" alt="The Bots list on Grid, the arrow at the Trades column" width="563"><figcaption></figcaption></figure>

The details show your account, pair, bot name, status, position and total PnL. Edit the name or note here to make this grid easier to recognise. Work down through Parameters, Profitability, Position, Progress, Notifications, Open and Activity.

## Change a setting

Open **Parameters**, choose a setting and edit it. Confirm with ✓ or Enter; × or Escape cancels. Use [Grid setup](https://docs.goodcrypto.app/goodcryptox-3.0/grid-bot/grid-setup.md) for the meaning of each field.

<figure><img src="https://3159525366-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrFKhEXxJL95YqC19XHlF%2Fuploads%2Fgit-blob-93fc5049da60feb6b83160a2584ccfb4a5b218bc%2Fgrid-running-2-parameters.webp?alt=media" alt="A Grid&#x27;s Parameters with Levels being edited, the arrow at the tick" width="300"><figcaption></figcaption></figure>

You can change the range, levels, sizing, Follow, trailing exits and stops while the grid runs. For example, changing **Grid top** from 110 to 115 changes the upper bound. Check **Grid bottom**, **Levels**, **Between levels** and **PnL per level** together before saving: a new bound changes the trading range and may change the gaps or exposure.

The **+ level** and **− level** controls add or remove a level at that edge. Confirm the proposed change with the tick, or cancel with the cross. Review the new funds requirement before adding levels.

A change to **Grid top**, **Grid bottom**, **Levels** or **Between levels** keeps your **Investment** and changes the **Level size**. The **+ level** and **− level** controls keep the **Level size** and change the **Investment**.

A change that moves other figures asks first. **Grid top**, **Grid bottom**, **Levels**, **Between levels**, **Investment**, **Level size** and the **+ level** and **− level** controls each change the figures that depend on them and move orders. After the tick, a **Save changes?** window shows the figures that change, before and after, how many orders are new, resized or canceled, and the new **Approx. margin** (**Funds needed** on spot) and **PnL per level**. **Save** applies the change; **Cancel** returns the setting to its value. Every other setting saves when you confirm it.

**Entry condition** and **Grid mode** record how the grid started. While waiting, you can edit the entry price or signal conditions. Once it starts, use the live settings to adjust the trading plan.

Changes take effect immediately. A price stop or PnL target already reached can stop the bot as soon as you save; read the warning first. Changing **Max drawdown** starts its peak from total PnL at that time.

With Follow on, review **Up to** or **Down to** as well as the range. Without a Follow limit, that direction has no price stop. Turning Follow off leaves the grid trading in its current range.

## Profitability

**Total PnL** is **Realized PnL** plus **Unreal. PnL**. If you have +20 realized and −30 unrealized, the total is −10 before closing fees. Open Realized PnL for trading result, exchange fees, platform fees and funding. Profit kept in the coin appears separately.

<figure><img src="https://3159525366-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrFKhEXxJL95YqC19XHlF%2Fuploads%2Fgit-blob-d3392b4ff9fb9290479580ddc98d9e3ef9ea0a44%2Fgrid-running-3-profitability.webp?alt=media" alt="Profitability with Realized PnL opened, the arrow at its chevron" width="430"><figcaption></figcaption></figure>

**Trailing exits** shows what completed trailing exits earned compared with Limit exits at their levels, after fees. +4 means four more in the quote currency; a negative figure means trailing earned less.

Choose a base under **Invested** or **Own funds**:

* **Initial** — investment when the grid started.
* **Current** — what it is set to use now.
* **Average** — funds used on average over running time.

Own funds, on perpetuals, is what the bot needs from your account to reach its stop loss, worked out as **Approx. margin** is on the form. **APR** projects the realized return over a year; **ROE** shows realized return on those funds. PnL percentages use Initial. The chart shows realized PnL bars and an APR line. Treat APR as a comparison, not promised earnings.

The bot's result covers its trades; your exchange's position figures cover the account position. Compare total results and the position still open when assessing performance.

Reinvest or account sizing can change future openings while older orders keep their sizes. The reinvested line shows profit included in current quote-sized openings, including losses; it is absent with % of account.

### Outside round trips

**Outside round trips** is the trading result from sales and purchases that did not belong to a completed Grid round trip. It is separate from the profit on matched opening and closing levels. Read it alongside the other Realized PnL components, fees and funding; completed round trips alone do not describe the grid's whole result.

## Position and Progress

**Bot position** is this grid's share: it could hold 0.1 ETH within your account's 1 ETH. **Account position** shows the whole size when it differs. **Average** is the account's average entry on perpetuals, the bot's on spot.

<figure><img src="https://3159525366-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrFKhEXxJL95YqC19XHlF%2Fuploads%2Fgit-blob-d536bc38db856a16527fd3a140f9ab2528909884%2Fgrid-running-4-position-progress.webp?alt=media" alt="A Grid&#x27;s Position and Progress" width="430"><figcaption></figcaption></figure>

Check **Liquidation**, **Leverage** and **Margin** on perpetuals. A leverage change affects the whole position and resizes unfilled account-percent openings; positions and closing orders keep their sizes.

**Progress** shows trades, filled orders, runtime and start or ending time. It also names a price or signal the grid is waiting for.

### Levels before liquidation

**No level between the price and liquidation** means the current price can reach the account position's liquidation price without first reaching another grid level. Check the position, its margin and your stops. A level before liquidation is not a guarantee against it: fills, funding and the rest of the account can change the outcome.

## The trading chart

Press **Chart** to see the grid on the price chart and fit its range, stops and open orders into view.

<figure><img src="https://3159525366-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrFKhEXxJL95YqC19XHlF%2Fuploads%2Fgit-blob-e04efa1a3cd4b4396c6732378f2a8e9f87e4678e%2Fgrid-running-7-chart.webp?alt=media" alt="A Grid on the chart, the arrow at Chart" width="563"><figcaption></figcaption></figure>

* Level lines mark the prices in the range.
* Buy and sell order lines use their side's colours.
* Fills mark where orders traded; filled order lines end at those points.
* A live trailing exit shows its solid path to the current candle and its dotted trigger line from there. After it ends, its level is dotted from placement until trailing started, followed by its path to the fill.
* Stops and Follow limits show where the plan can end or move.

A size label shows a level whose size changed. Use it to see differences after Reinvest, account sizing or an edit. Watch the range's edges as well as completed trades: a growing position there may matter more than frequent small profits.

## Orders and notifications

**Open** shows active orders. A bot launched before 3.2.1 places the orders it had held back for the exchange's minimum as soon as it runs on 3.2.1. Use **Show all** to see the rest. **Activity** shows filled orders; **Show funding** includes the bot's funding payments and **Show more** opens more history.

<figure><img src="https://3159525366-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrFKhEXxJL95YqC19XHlF%2Fuploads%2Fgit-blob-ef5b3f177decfad7b9177a07c3c1c1f399b40f98%2Fgrid-running-5-orders.webp?alt=media" alt="Notifications, Open and Activity of a Grid, the arrow at Show funding" width="300"><figcaption></figcaption></figure>

A row can read **Sell 1 SOL × 101.00 · +0.91 USDC**. Open its order card for fills, fees and times. **Closed** or **Closed by** links the paired orders; open one to inspect the other half of the trade. Liquidation and auto-deleveraging appear as **Liquidation** and **ADL** in red.

<figure><img src="https://3159525366-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrFKhEXxJL95YqC19XHlF%2Fuploads%2Fgit-blob-0caca448500a7bec075d0cc5084a1799d61f23f0%2Fgrid-running-6-order-card.webp?alt=media" alt="An order&#x27;s card, the arrow at the link to the order it closed" width="430"><figcaption></figcaption></figure>

On Hyperliquid spot, while you have other orders on the same coin, the bot places its limit orders as post-only, so one your balance doesn't cover is refused instead of canceling your other orders. One that would fill at once goes again as an ordinary order after goodcryptoX checks your balance.

Choose your four notification switches here. **Stop** offers the position-close choice. **Copy** fills a new form without launching. A finished grid keeps Copy and Chart; close a remaining position from **Positions**.

## What goodcryptoX tells you

Use **Every order**, **Every PnL change**, **Range, follows, resizes** and **Starts, stops, changes** to choose routine messages. Automatic fills, Follow moves and stops can reach you on Telegram. Errors and problems needing a decision always arrive.

## When the bot needs you

A failed order does not stop the grid: the rest keeps trading, and the level is free for the grid's next order there. [When an order fails](https://docs.goodcrypto.app/goodcryptox-3.0/manual-trading/when-an-order-fails.md) explains each refusal.

### Failed orders

When an order is refused or canceled for money, the grid puts it back by itself once its own trades free the money: nearest the price first, at most three times a level an hour. Money from anywhere else (a deposit, another bot) is used only when you press **Fix failed**.

The bot's card and the Bots list count the grid's failed orders. They don't go into **Needs your attention**: the bot keeps running. Add money and press **Fix failed** on the bot: it places the failed orders nearest the price first, as far as your free balance goes, and says what the rest needs. What still doesn't fit stays failed; press again later. An order the price has already passed goes at once, at the market.

A failed order says **Error**; open it to see why. Press the wrench on its row, or **Retry** on the order, to place that one order again.

If the bot needs a decision about its position, its status says so. Existing exits keep working while it takes no new risk. A notice about other resting orders alone leaves it running.

## Questions

### Can I change a running Grid bot?

Yes: open **Parameters** and edit the range, levels, sizing, Follow, trailing exits or stops; changes take effect immediately.

### Which Grid mode should I choose?

Use Neutral on perpetuals when you want to trade a range without an initial directional position. Long expresses a bullish view; Short a bearish one. Both can build more exposure when price moves against them. Spot has one mode and trades coins you own or buy. Review the [mode examples](https://docs.goodcrypto.app/goodcryptox-3.0/grid-bot.md#grid-mode) and the maximum Position before choosing sizes.

### Should I use more levels or wider gaps?

With the same **Investment**, more **levels** make smaller orders with tighter gaps. Fewer levels give larger orders and wider gaps. A tighter grid needs a smaller price move to complete a trade, but leaves less room for fees. Compare **PnL per level** after fees, and make sure the orders meet the exchange minimum. [Grid setup](https://docs.goodcrypto.app/goodcryptox-3.0/grid-bot/grid-setup.md#levels-and-between-levels) shows price and percentage spacing examples.

### What happens when price leaves the range?

With Follow off, the grid adds no opening levels beyond its bounds and holds the position it accumulated. Trading can resume when price returns; a trailing exit can still fill outside the range. Follow lets the range move, up to your chosen limit or without a limit. It can realise a loss, so review the estimated loss before turning it on.

### Can the bot lose money while completed trades show a profit?

Yes. The open position can lose more than completed round trips earned. Look at **Total PnL**, which includes unrealized PnL, rather than only trade count or Realized PnL. On perpetuals, liquidation can close the position before your outer levels or stop. Lower leverage and a suitable stop can reduce that risk; check the [margin estimate](https://docs.goodcrypto.app/goodcryptox-3.0/grid-bot.md#margin-and-liquidation) before launching.

### Does Take profit count the open position?

Yes. **Take profit**, **Stop loss** and **Max drawdown** all use total PnL, including the open position. With **Stop in Neutral position**, Take profit needs its target and a flat bot position at the same time. Hitting the target once does not reserve it for a later flat moment. Stop loss and Max drawdown close immediately when triggered. See [When to stop](https://docs.goodcrypto.app/goodcryptox-3.0/grid-bot/grid-setup.md#when-to-stop).

### When does Stop in Neutral position stop a Long or Short grid?

When the bot's position is flat, which on a Long grid happens only once its top sell has filled (the level the chart marks **Neutral pos.**) and on a Short grid once its bottom buy has.

### Will Stop leave me holding a position?

Check the position-close choice when you stop. **Close position on stop** decides whether price stops and errors also close the remaining position at market. If it is off, stopping cancels the grid's orders and leaves the position for you to manage. PnL stops close the position themselves. After the grid finishes, inspect **Positions** for any remaining exposure before starting a replacement.

While the grid stops it reads **Stopping**, with what it waits for: "Canceling the bot's orders", or "Closing the position" when the stop closes it. **Bot stopped** shows once it has. If the exchange never answers the cancel of one of its orders, the line reads "An order may still be open. Press Stop again" and Needs attention shows the bot: pressing **Stop** again sends that cancel again. **Refresh** on an order's details asks the exchange about that order.

A grid still stopping, or still launching, 5 minutes after it began sends you one message and shows in Needs attention with **Stop**; a grid waiting for a signal or an activation price is not launching.

### Is funding included in the result?

Yes. On perpetuals, funding paid or received is included in **Realized PnL**. Open that figure to see Funding beside trading result, exchange fees and platform fees. Use **Show funding** in **Activity** to inspect the payments alongside trades. Funding can change the result even when no round trip has just completed; include it when comparing a long-running grid with a shorter one.

### Can I use coins I already hold on spot?

Yes. **Use them** lets free coins replace part of the grid's starting purchase. Check **You hold**, the purchase and **Funds needed** before launching. Spot has no short mode or leverage. **Profit in the coin** can retain earnings in the coin; those coins appear separately from quote PnL. The bot can still sell and buy within the range, so choose it for ongoing trading.

### Why did my bot's profit change overnight?

Once a day, at 00:00 UTC, Hyperliquid sells any coin balance too small to trade (worth 1 USD or less). If some of those coins were your bot's leftovers, the sale counts in the bot's realized PnL.

### Do fees matter with a small gap?

Yes. PnL per level previews the return after exchange and platform fees; a narrow gap can leave little after those fees. **Trailing exits** close at market, and their actual result depends on the fill. The Trailing exits figure compares completed exits with Limit exits after fees. Review both the expected gap in setup and the fees on actual order cards as the grid runs.

### Do the stops work if goodcryptoX is off?

Keep goodcryptoX running for the grid to react to price, move its range, manage trailing exits and apply its stop rules. Orders already resting on the exchange can still fill while the app is off. Those fills can change the position you hold. If you want to end the strategy before shutting down, use **Stop** and review its position-close choice and result first.

On an inverse contract, sizes read in USD with the settlement coin under them; profit, fees, funding, Investment and Own funds are in the settlement coin. Average entry is harmonic. A hedge-mode Neutral grid shows its Long and Short positions separately, and its total PnL includes both even when their contract counts cancel.

Launching on the API key’s last day asks for **Launch anyway**. The bot is created, but its new automatic openings wait; existing orders and exits continue. After it expires, the grid stops waiting and sends its openings; any the exchange refuses become failed orders, and **Fix failed** places them again once you renew the key.
