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 terkk, Today, 01:16 PM
    1 response
    15 views
    0 likes
    Last Post NinjaTrader_Heath  
    Started by TraderElegante, Today, 12:14 PM
    1 response
    18 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by dgee949, Today, 11:44 AM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_JustinD  
    Started by NinjaTrader_Kate, Today, 12:01 PM
    0 responses
    20 views
    0 likes
    Last Post NinjaTrader_Kate  
    Started by efeuvejota01, Today, 11:42 AM
    3 responses
    36 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Working...
    X