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.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    51 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    129 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    69 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    42 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X