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 Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            598 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            343 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            103 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            557 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            557 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X