Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Pending orders frozen

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

    Pending orders frozen

    Greetings,

    NT 7, running a Custom Strategy, Strat ran correctly first time. When run again Entry Orders showed Pending and could not be canceled. Orders were OCO's.

    Trade Desk suggested OCO orders were the cause, to log off and log back on, which cleared the orders. How do I prevent this from happening in the future. Was'a good trade I missed . . .

    Bruce, one unhappy camper.

    #2
    Hello BGWTEX,

    This Behavior is likely caused by OCO Ids being re-used.
    If an order is filled or cancelled using an OCO ID, all orders from that point forward using that OCO ID will become stuck in the PendingSubmit state.
    This is because you are attempting to pair a new order with an already closed order using OCO which is not possible.
    This means that it is very important that once you've placed a pair of orders with OCO, that you change the OCOID to a new unique ID.

    Attached is an example of this that uses dates and times to make unique oco strings.

    (You could also use GetAtmStrategyUniqueId() to generate a unique string for each new order pair.
    http://ninjatrader.com/support/helpG...gyuniqueid.htm)
    Attached Files
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thank you Chelsea B.

      Hmm, how about that. I'll fix it today !!

      Thanks again,
      Bruce

      Comment


        #4
        Chelsea B.

        Why didn't I have the problem in Sim ? Maybe a few times, but not every time.

        Bruce

        Comment


          #5
          Hello Bruce,

          This affects some brokerages and not all, and does not affect the Simulation Engine built into NinjaTrader.
          Chelsea B.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          60 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          39 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          19 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          21 views
          0 likes
          Last Post TheRealMorford  
          Started by Mindset, 02-28-2026, 06:16 AM
          0 responses
          51 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Working...
          X