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 judysamnt7, 03-13-2023, 09:11 AM
    4 responses
    59 views
    0 likes
    Last Post DynamicTest  
    Started by ScottWalsh, Today, 06:52 PM
    4 responses
    36 views
    0 likes
    Last Post ScottWalsh  
    Started by olisav57, Today, 07:39 PM
    0 responses
    7 views
    0 likes
    Last Post olisav57  
    Started by trilliantrader, Today, 03:01 PM
    2 responses
    22 views
    0 likes
    Last Post helpwanted  
    Started by cre8able, Today, 07:24 PM
    0 responses
    10 views
    0 likes
    Last Post cre8able  
    Working...
    X