How to use Bybit Spot Grid Bot in different market conditions

Sep 7, 2026
3 min read

AI Summary

Show More

Quickly grasp the article's content and gauge market sentiment in just 30 seconds!

Detailed Summary

The Bybit Spot Grid Bot is an automated trading bot that buys low and sells high within a set price range using the Bybit exchange’s Spot market. Our companion article, What is a Spot Grid Bot, covers the setup and creation steps for the bot.

In the current article, we’ll largely focus on the bot’s core operational strategy, such as reading market conditions and optimizing parameters — including for features like Trailing Up and Trailing Stop. We’ll also discuss conditions under which it’s advisable to terminate or adjust your running bot.

Key Takeaways:

  • Spot grid trading is most suitable for ranging or volatile markets, whereas sustained one-sided markets often limit its effectiveness because the bot profits from price oscillations, rather than directional movements.

  • Price range and grid count are two key parameters that directly affect trading frequency and profit per grid. Activating Trailing Up lets you shift the grid range upward as the asset's price rises.

  • While using the Spot Grid Bot involves no liquidation risk, total P&L can still turn negative if the base token's price drop outweighs the profits earned from completed grids.

When is a Spot Grid Bot suitable?

Spot Grid trading performs best in volatile, range-bound markets, in which price oscillates within a set band and repeatedly crosses grid levels to complete buy-sell trades. Wider swings within that range allow prices to cross more grid levels per move, generating more completed trades. Swings that are too large, however, can push the price outside the range entirely, thereby halting trade execution.

Gradually rising markets benefit from Trailing Up, a feature that shifts the grid range upward one level at a time once the price breaks above the upper limit (plus one grid interval). Trailing Up only moves the range upward. Please note that there is no Trailing Down feature for the bot.

Strongly one-directional markets are less suitable to this strategy. Without Trailing Up active, a price rising above the upper limit stops the bot from placing new orders. Dropping the price below the lower limit leaves the bot holding base tokens at a loss, with no new trades executed to offset it.

Sustained downtrends carry the highest risk. The bot continues to hold the base token while grid trading remains inactive, and the token's value keeps declining, with no way to respond.At the same time, the Spot Grid Bot operates in the Spot market, so you aren't exposed to any liquidation risk. The base token itself can still lose value, but the position cannot be forcibly liquidated the way leveraged positions can.

How does a Spot Grid Bot generate profit?

Grid profit measures the cumulative return from each buy-sell pair your bot completes. The formula for the grid profit is as follows:

Grid Profit = Sell Quantity × Sell Price × (1 − Fee Rate) − Buy Quantity × Buy Price

Every completed grid trade captures the spread between its buy and sell levels, and a transaction fee is then deducted from this amount. The standard Spot transaction fee on Bybit is 0.1% for non-VIP accounts. This fee is calculated on the total buy or sell price for each trade of the grid strategy.

Grid Profit alone provides a limited view of your overall profitability from using the strategy. It accounts for both realized grid profits and the unrealized performance of the base token, using the following formula:

Total P&L = (Equity of Base Token + Quote Token) − Total Investment

Because this figure includes the current market value of the held token, it can diverge sharply from Grid Profit alone. A bot can generate positive Grid Profit, trade after trade, and still show a negative Total P&L if the base token's price has fallen enough to erode those gains. If the market drops significantly, unrealized losses on the base token can easily outweigh the entire profit the grid has generated. As such, a positive Grid Profit is never a guarantee of the overall profitability of using grid trading.

Let’s consider an example — a Bitcoin (BTC)/Tether (USDT) grid, set at a market price of 1 BTC = 78,000 USDT, and spanning a range of 70,000–95,000 USDT, with 5 arithmetic grids and a 5,000 USDT interval. This setup produces grid levels at 70,000/75,000/80,000/85,000/90,000/95,000 USDT.

Using a simplified quantity of 0.1 BTC per grid and the standard 0.1% Spot trading fee, a completed 75,000-to-80,000 USDT trade is calculated as follows: Grid Profit = 0.1 × 80,000 × (1 − 0.001) − 0.1 × 75,000 (= 7,992 − 7,500) = 492 USDT

This amount of 492 USDT represents realized profit only, isolated from any change in BTC's market value.

After completing the 75,000-to-80,000 cycle with a Grid Profit of 492 USDT, let's suppose BTC then falls to 60,000 USDT. The bot initially holds 0.4 BTC, and the buy orders at 75,000 and 70,000 execute as price falls, bringing total BTC holdings to 0.6 BTC. Based on the example's parameters, the bot's total investment is 45,700 USDT. At 60,000 USDT per BTC, the 0.6 BTC is worth 36,000 USDT, while the completed grid trade has generated 492 USDT in realized Grid Profit.

Total P&L = 36,000 + 492 − 45,700 = −9,208 USDT

Grid Profit remains positive at 492 USDT, but the decline in BTC's market value more than offsets it, resulting in a negative Total P&L.

Grid Trading: Earn on Every Wave

From Aug 28–Sep 14, 2026, eligible users can earn additional rewards through the Grid Trading: Earn on Every Wave campaign. First-time Spot or Futures Grid Bot users who invest at least $200 and keep the bot running for three days can receive a 5 USDT Bot Loss Cover Voucher, while trading-volume and milestone tasks can unlock Lucky Draw chances. Please note that KYC Level 1 verification and a main account are required to participate in this campaign.

How to choose a trading pair and investment amount

The choice of the trading pair and the investment amount directly influence both opportunity and risk in Spot Grid trading. Minimum investment varies by trading pair, price range and grid count. When you set up your bot, the interface will show the required amount before you commit any funds.

Naturally, volatile pairs are more likely to cross grid levels, presenting opportunities for more frequent trades. At the same time, such pairs also carry a greater risk of breaking out of the configured price range altogether.

Bybit's Spot Grid Bot system allows you to run up to 50 bots simultaneously. This lets you spread your capital across multiple pairs, rather than keep everything concentrated in one. Running several bots at once also opens the door to using different grid trading approaches applied in parallel, each one tailored to a specific pair's behavior.

Two configuration modes are available for the Spot Grid Bot: AI Strategy and Manual. AI Strategy suggests parameters based on historical data, benefiting users who may be unsure how to optimally configure grids on their own. Meanwhile, Manual mode remains available for those who prefer full control over their settings.

How to set the price range and number of grids

The price range should account for the expected price movement over the bot's running period. A range set too narrow causes price to exit quickly, while an excessively wide range makes grid intervals large and reduces trade frequency. Bybit imposes constraints on price limits as follows:

  • Upper Price can range from 0.8 to 3 times the market price.

  • Lower Price can range from 0.3 to 1.2 times the market price.

Grid count has a similar trade-off:

  • More grids create smaller intervals, more frequent fills, lower profit per grid and more fees.

  • Fewer grids create larger intervals, higher profit per grid and less frequent fills.

The initial grid count must stay between 2 and 200, though the system adjusts the maximum (based on the range) to keep grid profit above fees.

Spot Grid uses arithmetic grids exclusively, meaning that each grid level maintains an equal absolute price difference from the next one.

Price range and grid count can be adjusted while the bot is running. Changing either parameter automatically adjusts the investment amount to fit the new configuration, while any existing TP/SL settings clear the moment these parameters are modified mid-run. As such, ensure that you re-specify your TP/SL settings after you make the adjustments.

How to manage exits and control risk

To optimize your Spot Grid Bot's response to changing market conditions, you can use several advanced settings for exits and risk management.

Take Profit (TP), one of the most critical risk management settings, terminates the bot once the market price reaches the TP price, selling all base tokens into the quote token. The TP price must be set above both the entry price and the upper price limit. In contrast, Stop Loss (SL) works the same way in reverse: it terminates the bot when the market price reaches the SL price, selling all base tokens into the quote token to limit losses. The SL price must sit below both the entry price and the lower price limit.

Trailing Stop tracks the highest recorded account equity, calculated using the index price, and terminates the bot if equity retraces by the set retracement rate from that peak. The presence of slippage means that the final account equity may differ from the exit equity that that Trailing Stop calculated.

Trailing Up works differently from Trailing Stop. Instead of exiting, it shifts the grid range upward when the market rises one grid interval above the upper limit, canceling the lowest buy order and placing a new one at the previous upper limit. This requires at least five grids and sufficient balance. If funds run short, a dynamic order mechanism cancels orders farthest from the market price, while ensuring that the minimum grid count doesn’t fall below five.

Again, note that the Spot Grid Bot has no corresponding Trailing Down feature.

Further considerations

Since Spot Grid Bots operate in the Spot market, positions cannot be liquidated. However, a decline in the base token’s value can still reduce Total P&L or push it into negative territory.

We recommend pairing Trailing Up with Trailing Stop, in order to keep the bot active during rallies while retaining a dynamic exit option if equity pulls back from its peak.

The image below shows the grid shifting upward triggered by the Trailing Up option. Trailing Up is triggered when the market price reaches or exceeds one full grid interval (5,000 USDT) above the initial upper limit (95,000 USDT). In our example, this corresponds to a market price of 100,000 USDT or more. The bot then shifts the trading range upward by one grid interval, raising each grid level by 5,000 USDT:

When to terminate or adjust a bot

If market conditions shift meaningfully once you've set up your bot, consider terminating the bot and creating a new one to reflect the new price realities.

If the price stays above the range without Trailing Up, no new orders are placed until it returns within the grid range. Conversely, if the price drops below the range, the bot holds base tokens and also stops placing new grid orders. In both cases, it's advisable to consider whether to terminate the bot, or to wait for price to reenter the configured range, depending upon current market conditions.

Positive Grid Profit with negative Total P&L means that the base token has lost more value than grid trades have earned. This may be another signal to terminate.

Note that realized grid profits can be withdrawn while the bot is running, and credited to your Funding Account, with the maximum withdrawal depending upon market conditions.

Termination provides three settlement options:

  • Convert all base tokens to quote tokens at the market price.

  • Get held tokens as-is.

  • Convert all quote tokens to base tokens at the market price.

Options 1 and 3 involve a market conversion and incur Spot trading fees, which may cause the received amount to differ from your displayed profit.

The bottom line

Bybit's Spot Grid Bot works best in volatile, range-bound markets in which price repeatedly crosses grid levels. Choosing an appropriate price range and grid count, then using tools such as Trailing Up to adjust the grid as price rises and Trailing Stop to manage exits, can help you respond as market conditions change. To create your automated grid trading strategy, explore the Bybit Spot Grid Bot.

#LearnWithBybit

Grab Up to 100 USDT in Rewards

Also, enjoy 555% APR on Bybit Earn products!

    roadmap