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 arvidvanstaey, Today, 02:19 PM
    2 responses
    8 views
    0 likes
    Last Post arvidvanstaey  
    Started by jordanq2, Today, 03:10 PM
    0 responses
    5 views
    0 likes
    Last Post jordanq2  
    Started by traderqz, Today, 12:06 AM
    10 responses
    18 views
    0 likes
    Last Post traderqz  
    Started by algospoke, 04-17-2024, 06:40 PM
    5 responses
    46 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by mmckinnm, Today, 01:34 PM
    3 responses
    6 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X