Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

cancel limit order

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

    cancel limit order

    Hi;

    I want to send limit order by code.In case of partial fill, is there a way to cancel limit order with remaining quantity when price goes above the percentage that I have set.

    Thanks,
    Irfan

    #2
    Hi Irfan, yes you can issue a CancelOrder() call on your IOrder object that's working / partial filled. This sample will show how to use this commend for example to cancel after a certain amount of bars, but could be of course another custom condition as well - http://www.ninjatrader.com/support/f...ad.php?t=18890

    Comment


      #3
      Thanks
      I know how to cancel the order but my question is that if have place limit order with 1000 quantity and when limit is achieved may I have only get filled 500 shares and then price goes above and does not reached to my limit price after a specific time. How can I cancel order for remaining 500 shares. I am also using the unmanaged approach to send limit order .

      Comment


        #4
        Understood, you would not cancel it for a specific amount - when you Cancel commend is processed the order is canceled, in the meantime you could still be getting fills for sure as the order is actively working to get filled.

        Comment


          #5
          ok Thanks

          as I understand ,you say that there is no way in NinjaTrader to cancel remaining shares in limit order if part of order is get filled.

          Comment


            #6
            No you can cancel the order at anytime, there's just no guarantee that between the time you issued the cancel command then no other fills for it would be coming in. As there's a delay getting that commend send out to your broker / the exchange where the order is working. So there's no cancel for a specific qty only for the complete order.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by CarlTrading, 03-31-2026, 09:41 PM
            1 response
            68 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            36 views
            0 likes
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            61 views
            1 like
            Last Post CaptainJack  
            Started by CarlTrading, 03-30-2026, 11:51 AM
            0 responses
            62 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 03-30-2026, 11:48 AM
            0 responses
            53 views
            0 likes
            Last Post CarlTrading  
            Working...
            X