Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Full OrderState Lifecycle of Cancelled Order

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

    Full OrderState Lifecycle of Cancelled Order

    When a Limit or StopMarket Order is Cancelled, what is the full lifecycle of the OrderState of the Order?

    It would presumably initially enter OrderState.CancelPending and progress through to OrderState.CancelSubmitted and finally OrderState.Cancelled. Will it pass through any other OrderStates, even briefly; e.g. OrderState.Working?

    Thanks.​
    Multi-Dimensional Managed Trading
    jeronymite
    NinjaTrader Ecosystem Vendor - Mizpah Software

    #2
    Hello jeronymite,

    Thank you for writing in.

    The order states may be observed in the Log tab of the Control Center and we have the order state definitions in the Help Guide here:


    Typically, a Limit or Stop Market order will be in the Working state after it is accepted and before the action to cancel the order is submitted. Then it hits Cancel Submitted and Cancelled. Here is an example where I submitted a simulated limit order in the SuperDOM then cancelled it:
    World's leading screen capture + recorder from Snagit + Screencast by Techsmith. Capture, edit and share professional-quality content seamlessly.


    The order states were Submitted -> Accepted -> Working -> Cancel Submitted -> Cancelled. There is no specific lifecycle of orders, after being submitted they could be changed, rejected, partially filled, etc.

    Please let us know if we may be of further assistance.

    Comment


      #3
      Thanks, NinjaTrader_Emily. I know the overall states of Orders well. I ask about the Cancel "lifecycle" to ensure I know what is possible. I want to know if it is definitive that once a Cancel Order is executed in an AddOn, that the Order can only go through the sequence CancelPending, CancelSubmitted and finally Cancelled. Exceptions might be if the Cancel does not reach the Order before it begins to execute (resulting in an Unable to Cancel Order error), but if it does reach it while it is still Working (or earlier), is it definitive to follow that sequence?

      Thanks.
      Multi-Dimensional Managed Trading
      jeronymite
      NinjaTrader Ecosystem Vendor - Mizpah Software

      Comment


        #4
        Hello jeronymite,

        Thank you for your reply.

        The sequence of an order cancellation is not definitive. For example, in the example from my previous post the order went from Working to Cancel Submitted and then Cancelled. The order did not reach a state of Cancel Pending.

        I appreciate your patience. Please feel free to reach out with any additional questions or concerns.

        Comment


          #5
          Thanks, NinjaTrader_Emily. To confirm, after you submitted the Cancel, the Order passed through the Working state? And was that Sim/Demo/Live?

          Thanks.
          Last edited by jeronymite; 11-15-2022, 03:34 PM.
          Multi-Dimensional Managed Trading
          jeronymite
          NinjaTrader Ecosystem Vendor - Mizpah Software

          Comment


            #6
            Hello jeronymite,

            Thanks for your response.

            The order did not pass through the working state after the cancellation. This was a simulated order on the Sim101 account.
            Here is an example where I submitted a simulated limit order in the SuperDOM then cancelled it:
            World's leading screen capture + recorder from Snagit + Screencast by Techsmith. Capture, edit and share professional-quality content seamlessly.


            The order states were Submitted -> Accepted -> Working -> Cancel Submitted -> Cancelled
            Click image for larger version

Name:	LWR_Recording.png
Views:	172
Size:	50.1 KB
ID:	1223800

            As previously mentioned and shown in the screenshot, the order was Submitted, then Accepted, then Working. Next is when I pressed the cancel button, which resulted in Cancel Submitted and then Cancelled. You previously asked me to clarify if the "Order can only go through the sequence CancelPending, CancelSubmitted and finally Cancelled.​" and my response to that is no; this sequence is not guaranteed nor definitive. In my example, the order did not ever go through a state of CancelPending which is why I brought it up as an example to demonstrate this point.

            I appreciate your patience and hope this helps to clarify. Please let me know if I may be of further assistance.

            Comment


              #7
              Thanks, NinjaTrader_Emily. Much appreciated.

              Thanks.
              Multi-Dimensional Managed Trading
              jeronymite
              NinjaTrader Ecosystem Vendor - Mizpah Software

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              640 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              366 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              107 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              569 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              572 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X