Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT7: What are Order.States that allow to cancel an Order?

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

    NT7: What are Order.States that allow to cancel an Order?

    When a Strategy triggers a signal and submits an order, it will take a time before the Order gets "OrderState.Working" ( accepted and live at the exchange ).

    My question is: what if the Strategy needed to cancel that Order before it gets "OrderState.Working" ? Could it be possible to cancel an order in any of these Order.State ?:

    OrderState.Accepted
    OrderState.PendingChange
    OrderState.PendingSubmit

    Or even simpler question:
    Can a Strategy cancel an order which is " NOT NULL " ?

    Thanks
    Last edited by pstrusi; 06-17-2018, 02:42 AM.

    #2
    This thread may be useful,
    https://ninjatrader.com/support/foru...d.php?p=408920

    Comment


      #3
      Hello pstrusi,

      An order can be cancelled in any state except for Filled, PartFilled, or Cancelled. With these states it would cause an overfill.

      Let me know if you would like all the other states than these states listed.

      While it is allowed to cancel an order in any other state than these states, there may be other reasons than an order cannot be cancelled (such as improper oco use).

      Below is a public link to the help guide on CancelOrder().
      https://ninjatrader.com/support/help...ancelorder.htm

      This is also true in NinjaTrader 8.
      Last edited by NinjaTrader_ChelseaB; 06-17-2018, 07:12 PM.
      Chelsea B.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Behungr101, Today, 10:17 AM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_JustinD  
      Started by ezrollin, Today, 10:11 AM
      2 responses
      7 views
      0 likes
      Last Post ezrollin  
      Started by xmess777, Yesterday, 07:16 PM
      1 response
      25 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by 8033075, Yesterday, 08:13 PM
      1 response
      35 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by futurenow, Yesterday, 06:13 PM
      1 response
      25 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Working...
      X