---
id: faq_item.1394
page_type: faq_article
title: "When placing a BuyLimit grid of pending orders in the Moonbot terminal with CancelBuyAfterSell=YES, if buying and selling on the first deposit is triggered, then the remaining deposits are not canceled, what could be the matter?"
description: "If you have set up a grid with pending orders in the Moonbot terminal in the strategy settings, for example, BuyType = BuyLimit (order type: deferred BuyLimit)..."
section: faq
category: "Strategy settings"
url: https://moonbot.pro/faq/strategy-settings/1394?format=md
locale: en
alternate_ru: https://moonbot.pro/ru/faq/strategy-settings/1394?format=md
alternate_zh: https://moonbot.pro/zh/faq/strategy-settings/1394?format=md
parent: https://moonbot.pro/faq/strategy-settings?format=md
previous: https://moonbot.pro/faq/strategy-settings/1393?format=md
next: https://moonbot.pro/faq/strategy-settings/1395?format=md
status: published
updated_at: 2026-11-15T17:27:32+03:00
---

# When placing a BuyLimit grid of pending orders in the Moonbot terminal with CancelBuyAfterSell=YES, if buying and selling on the first deposit is triggered, then the remaining deposits are not canceled, what could be the matter?

If you have set up a grid with pending orders in the Moonbot terminal in the strategy settings, for example, BuyType = BuyLimit (order type: deferred BuyLimit) and CancelBuyAfterSell = YES (cancel the remainder of the grid with Buy orders after selling one of the orders in it), then in recent versions the same algorithm cancels the remaining grid It also applies to Pending BuyLimit and StopLimit orders. We recommend updating the terminal to the current version.

## Navigation

Path: [Main](https://moonbot.pro/?format=md) / [FAQ](https://moonbot.pro/faq?format=md) / [Strategy settings](https://moonbot.pro/faq/strategy-settings?format=md) / When placing a BuyLimit grid of pending orders in the Moonbot terminal with CancelBuyAfterSell=YES, if buying and selling on the first deposit is triggered, then the remaining deposits are not canceled, what could be the matter?

Parent section: [Strategy settings](https://moonbot.pro/faq/strategy-settings?format=md)

Previous: [What is the BinancePriceBugMin parameter used for in the strategy settings of the Moonbot terminal?](https://moonbot.pro/faq/strategy-settings/1393?format=md)

Next: [What is the DontSellBelowLiq parameter in the Stops strategy settings tab for in the Moonbot terminal?](https://moonbot.pro/faq/strategy-settings/1395?format=md)

## Related

- [What is the DontSellBelowLiq parameter in the Stops strategy settings tab for in the Moonbot terminal?](https://moonbot.pro/faq/strategy-settings/1395?format=md)
- [Does the DontSellBelowLiq setting work in the Moonbot terminal on the Stops tab of the strategy settings for the PriceDown functionality (when auto-closing Sell orders)?](https://moonbot.pro/faq/strategy-settings/1396?format=md)
- [What is the StopAboveLiq parameter in the Stops strategy settings tab for in the Moonbot terminal?](https://moonbot.pro/faq/strategy-settings/1397?format=md)
- [Does the StopAboveLiq setting work in the Moonbot terminal on the Stops tab of the strategy settings for the PriceDown functionality (when auto-closing Sell orders)?](https://moonbot.pro/faq/strategy-settings/1398?format=md)
- [In my Moonbot terminal, the following values are set on the Stops tab: StopLoss=-1, StopAboveLiq=2, after buying the coin, the liquidation line was set at -5% of the purchase price, what value will the stop loss be set at with these settings?](https://moonbot.pro/faq/strategy-settings/1399?format=md)
