Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Cancelling a Pending Order.

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

    Cancelling a Pending Order.

    Hi,

    Is there a way to cancel a pending order? Say I have an order in to sell at 100 and the market is at 95. Is there a way to cancel the order if the market moves to 90? I would like to cancel my sell automatically if a price is reached. Is there a condition I can place on the sell order?

    I'd like to know if this is possible to setup using the ATM or any of the manual entry points using NT. I believe I might be able to set something up code-wise to handle this very situation.

    Any thoughts?

    thanks-
    jon

    #2
    Jon, there is a way to cancel a pending order. The method is called CancelOrder(). Also, we recently posted a reference sample for how to cancel orders.

    Unfortunately, NinjaTrader strategies cannot take over for a discretionary trade, which I think is what you're looking for. CancelOrder is only usable in NinjaScript strategies.
    AustinNinjaTrader Customer Service

    Comment


      #3
      Austin,

      Thanks for the reply. I'm actually looking for a way to cancel a pending order when that pending order is placed via the SuperDOM or BasicEntry form. Is there a way to use the the SD or Basic Entry form to manually set a cancel condition on an order?

      thanks!
      jon

      Comment


        #4
        Jon, unfortunately not - you would need to monitor the price and cancel the order then manually as needed from the order entry windows.

        Comment


          #5
          Is there a way we can see this in a future release of NT. It seems like something a trading platform should have. Something similar to a "kill level" that associates trades with a price. If that price is hit then it cancels the related order.

          thanks-

          Comment


            #6
            Hello,

            I will send this to our development department for consideration. Thanks!
            DenNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by CarlTrading, 03-31-2026, 09:41 PM
            1 response
            152 views
            1 like
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            89 views
            1 like
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            131 views
            2 likes
            Last Post CaptainJack  
            Started by CarlTrading, 03-30-2026, 11:51 AM
            0 responses
            127 views
            1 like
            Last Post CarlTrading  
            Started by CarlTrading, 03-30-2026, 11:48 AM
            0 responses
            107 views
            0 likes
            Last Post CarlTrading  
            Working...
            X