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 swestendorf, Today, 11:14 AM
          2 responses
          5 views
          0 likes
          Last Post NinjaTrader_Kimberly  
          Started by xiinteractive, 04-09-2024, 08:08 AM
          4 responses
          13 views
          0 likes
          Last Post xiinteractive  
          Started by Mupulen, Today, 11:26 AM
          0 responses
          2 views
          0 likes
          Last Post Mupulen
          by Mupulen
           
          Started by Sparkyboy, Today, 10:57 AM
          1 response
          5 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by TheMarlin801, 10-13-2020, 01:40 AM
          21 responses
          3,917 views
          0 likes
          Last Post Bidder
          by Bidder
           
          Working...
          X