OKX Grid: Cost Basis Rises When Price Moves Up – When to Set an Upper Limit?

 / 
OKX
 / 
1

The AI-recommended grid parameters are essentially the "historical optimal solution" based on backtesting the past 7 days of market data. They are suited for the range-bound zone that has already concluded. When the price steadily climbs in a slow bull market, if the AI parameters remain unchanged, your holding cost and the entire grid's "survival space" will be mismatched.

OKX Exchange
A leading global cryptocurrency platform,suitable for both beginners and experienced traders.
New user benefit: 20% off trading fees upon registration!!

The following is a secondary adjustment plan for the situation where "cost basis rises as price moves up", with the core being to redefine the consolidation range and set an effective price upper limit.

Step 1: Determine Whether the Current AI Interval Has Become "Invalid"

The AI-recommended price range (upper and lower bounds) determines the grid's "activity zone". Once the current price exceeds this range or persistently hugs the upper limit, the grid loses the opportunity to "buy low" and instead turns into a one-way "selling machine".

What to do: Check the gap between the strategy's current "upper price" and the current market price.

How to do it:

  • Scenario A (Price has approached or breached the upper limit): The AI-recommended interval is already invalid. At this point the grid will frequently trigger sell orders near the upper price, but without new low-price buy orders following up, your position shrinks while the average cost appears to "rise" because sold profits are locked in.

  • Scenario B (Price is in the middle of the range, with ample room to oscillate): No adjustment is needed for now; the strategy is still operating effectively.

What counts as done: You have confirmed that the current price is clearly above the midpoint of the AI-recommended interval, or has even touched or exceeded the upper limit.

Common reason for failure: Mistakenly believing that "price rising causes cost to become higher" is a grid malfunction, when in reality the price has broken through the interval, forcing the grid to stop functioning properly while you still hold a high-position entry.

Step 2: Two Paths for Secondary Adjustment – Fine-Tuning vs. Resetting

Once you confirm the original interval has failed, you need to redefine the grid's "effective range" based on the latest market conditions.

What to do: Decide whether to "modify parameters" on the existing bot or "stop and rebuild".

How to do it:

  • Scenario A (Fine-tune parameters): If the price has only slightly exceeded the upper limit and you still believe the asset will enter a new consolidation zone, use the strategy's "Modify Parameters" function to directly raise both the "upper price" and "lower price", shifting the entire grid up to around the current price. Make sure the new upper price is well above the current market price, leaving enough buffer for further upside.

  • Scenario B (Stop and rebuild): If the market has undergone a clear trend shift (e.g., a unilateral upswing), your current position structure may already be unbalanced. In this case, it's recommended to stop the grid, and when choosing the stop type select stopType = 2 (keep positions) to avoid additional losses from market sell-offs. Then, using the latest market data, employ the AI's "Smart Create" feature to obtain a fresh set of 7-day backtest parameters based on current conditions.

What counts as done: You have decided, based on the degree of price deviation, whether this adjustment will be "modifying parameters" or "stopping and rebuilding".

Step 3: Set an Effective "Price Upper Limit" – Prevent Future Passivity

Whether you fine-tune or rebuild, to avoid the cost basis becoming artificially high again the next time the price rises, you must reset two key parameters: the upper price and the take-profit price.

What to do: When adjusting parameters, set a reasonable price ceiling and a take-profit line.

How to do it:

  • Upper Limit: This value must be set high enough. In a normal grid, the strategy will stop running if the price breaks the upper limit. Meanwhile, an infinite grid's upper limit is usually set at a multiple of the current price, making it difficult to breach, which is suitable for a slow bull market.

  • Take-Profit Price: This is an exit instruction that goes beyond the "upper limit". When the price reaches the take-profit level, the strategy will automatically stop and market-sell all positions, locking in profits. If the AI-recommended parameters lack a take-profit setting, it's advisable to manually add this "ceiling" to tell the bot at what exact price to liquidate the entire position.

What counts as done: In the new strategy parameters, the upper price covers your expected upside potential, and a clear take-profit price is set as the final exit point.

Risk reminder: As long as the grid is running, the invested capital is in a segregated state. Even when a take-profit is set, at the moment of triggering it is still a "market sell". In extreme market conditions, the fill price may deviate from the take-profit price.

OKX Exchange
A leading global cryptocurrency platform,suitable for both beginners and experienced traders.
New user benefit: 20% off trading fees upon registration!!

How to Confirm the Operation Is Correct?

After adjusting parameters and restarting the grid, check the following three items:

  1. Check the range position: Is the current price in the lower-middle part of the new range (leaving enough room for buying on dips)? If the current price is still hugging the new range's upper limit, the range hasn't been lifted high enough.

  2. Confirm take-profit is active: In the strategy details, verify that the "take-profit price" is correctly set and in an active state.

  3. Monitor the first fills: Watch whether the first few orders fill normally. If there are consecutive "sells" without any "buys", the range may still be too low and needs to be moved further up.