Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

"Cancel Pending" State Hangs - Please Advise

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

    "Cancel Pending" State Hangs - Please Advise

    When executing script generated orders with an ATM Strategy, occasionally I seem to produce hanging order states whereby the Strategy operation takes action to cancel "any remaining strategy orders" but seemingly never gets a confirmation of the cancellation... The order State remains "Cancel pending" and hangs on the SuperDOM and Chart Trader...

    Two quesitions:
    1) What might be causing this to occur
    2) Do I need to concern myself with it?

    Reason I ask #2 is that the "Cancel pending" order is never subsequently filled even if price trades through it...

    Obviously I would like to avoid producing this state, but to the extent it occurs and is benign then that would be good to know as well...

    Below is a screenshot of the order in question along with the log window:

    Click image for larger version

Name:	cancelPendingHangs.png
Views:	476
Size:	212.9 KB
ID:	1214899


    #2
    Hello TheFil,

    Thanks for your post.

    Stuck orders can be seen when race conditions are encountered with the Simulation Engine, I.E. order fills and cancellations occurring at the exact same time or near the same time.

    Do you have any deliberate cancels added within your strategy logic that could be occurring at the same time as the ATM strategy "Cancel remaining strategy orders behavior?"

    If we are not using any deliberate cancels and just looking at the internal ATM strategy cancel behavior, is the behavior reproducible? And if it is, could you share a small test script that we can use to reproduce and see if it is an area that can be improved?

    As for the case of live orders, we do not expect cases like these and would want to look into reproducing any live-stuck-order situation so we can have the Development team take a look.

    We look forward to assisting.
    Last edited by NinjaTrader_Jim; 09-12-2022, 12:41 PM.

    Comment


      #3
      Thanks NinjaTrader_Jim,

      To answer your question, yes I do have my own conditional deliberate cancels in the calling script so that must be what's happening.

      Appreciate the insight!

      Comment


        #4
        TheFil These two posts are still extremely relevant:Thanks.
        Multi-Dimensional Managed Trading
        jeronymite
        NinjaTrader Ecosystem Vendor - Mizpah Software

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        68 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        41 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        24 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        27 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        54 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X