Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Order State Question

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

    Order State Question

    Hi,

    I run my Strategy and eventually an order is placed and filled. The strategy then automatically submits a stop-loss order. This order is submitted and, according to the Prints I have in the code, eventually reach an OrderState of 'Accepted', but never reaches a 'Working' Orderstate.

    This is the order submission I use:

    MyStopOrder = SubmitOrderUnmanaged(0, OrderAction.Sell, OrderType.StopMarket, Position.Quantity, <SomePrice>, <SomePrice>, "", "STC");


    What would cause this to happen? Why would an order be accepted but never reach a 'Working' state?

    Thanks,

    Charlie


    #2
    Hello Charlie, thank you for your post.

    The state transition will be: Submit -> Accept -> Working -> Filled. Your broker will have more information on the states the order transitioned through and where the order is when a state transition occurs. The transition from accepted to working is something a broker's servers would control.

    Please let me know if I can assist with any thing else.
    Chris L.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by mattdowns1234, Today, 06:57 PM
    0 responses
    14 views
    0 likes
    Last Post mattdowns1234  
    Started by dgee949, Today, 06:26 PM
    0 responses
    24 views
    0 likes
    Last Post dgee949
    by dgee949
     
    Started by dgee949, Today, 05:58 PM
    0 responses
    30 views
    0 likes
    Last Post dgee949
    by dgee949
     
    Started by thepcmd, Today, 05:14 PM
    0 responses
    33 views
    0 likes
    Last Post thepcmd
    by thepcmd
     
    Started by xmess777, Today, 04:58 PM
    0 responses
    23 views
    0 likes
    Last Post xmess777  
    Working...
    X