Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Cancel balance order in part filled orders

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Cancel balance order in part filled orders

    Hi,

    May I check how do I go about cancelling the balance in part filled orders? Understand that we can't use CancelOrder to cancel any part filled orders?

    I'll like to cancel any balance in the part filled orders after the price had reached either my profit level or my stop-loss level.

    Thanks in advance.


    Regards,
    Al

    #2
    Hello Al,

    Attempting to cancel a part filled order is most likely going to cause an error as the order will continue filling.

    It is possible to use a CancelOrder() on a part filled order and the non-filled amount will be cancelled. However if the order has another part fill execution before the part filled amount is cancelled, the broker is going to send an unable to cancel order error message, or an overfill message.

    My suggestion would be to use individual orders for each quantity instead of a larger quantity that can part fill.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi Chelsea,

      Thanks for the reply.

      May I also check on the following:

      1. Can I place ExitLongLimit for profit level and Exit LongStopLimit for stop loss with the original planned entry size even though I'm only partial filled for my entry?

      2. If yes to qn1 -> if price reaches either my profit level or stop loss level with the partial filled qty, will the exit order exit the partial qty and still pending the unfilled orders? W

      3. If yes to qn2 ->, if I cancelled the entry, will the 2 exit order also be cancelled?

      thanks in advance.

      regards,
      al

      Comment


        #4
        Hello Al,

        1. Can I place ExitLongLimit for profit level and Exit LongStopLimit for stop loss with the original planned entry size even though I'm only partial filled for my entry?

        You can place several ExitLongLimits and ExitLongStopLimit pairs for each quantity chunk small enough it won't part fill. Each entry should have a unique signal name, each exit should be using the From entry signal of that entry to pair them together.

        Make sure the EntryHandling is set to unique entries or EntriesPerDirection is large enough for the extra orders.



        2. If yes to qn1 -> if price reaches either my profit level or stop loss level with the partial filled qty, will the exit order exit the partial qty and still pending the unfilled orders? W

        The idea is to make the quantities small enough they don't part fill, even if the quantity has to be dropped to one. This basically happens only in slow moving markets and the script should be designed to handle that.

        3. If yes to qn2 ->, if I cancelled the entry, will the 2 exit order also be cancelled?

        With the managed approach yes, exits using the From entry signal of an entries Signal name will automatically be cancelled if the entry is cancelled or if the position opened by the entry is closed.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Today, 05:17 AM
        0 responses
        50 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        126 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        69 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        42 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        46 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X