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 felixolmo, Today, 09:35 PM
          0 responses
          7 views
          0 likes
          Last Post felixolmo  
          Started by nandhumca, Today, 08:47 PM
          0 responses
          7 views
          0 likes
          Last Post nandhumca  
          Started by BullyWig Trader, Today, 07:15 PM
          0 responses
          6 views
          0 likes
          Last Post BullyWig Trader  
          Started by ezrollin, Today, 05:13 PM
          1 response
          15 views
          0 likes
          Last Post ezrollin  
          Started by ineuron, Today, 04:29 PM
          0 responses
          8 views
          0 likes
          Last Post ineuron
          by ineuron
           
          Working...
          X