Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Order can't be submitted. "The OCO ID cannot be reused"

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

    Order can't be submitted. "The OCO ID cannot be reused"


    Am I getting " Order can't be submitted. "The OCO ID cannot be reused" ​because I'm running to many strategies at once?

    I keep getting this error. I see this is a common issue, and I've read the previous forum posts on this topic. I like to run a bunch of strategies at once in Simulation mode, to test different derivatives. The more strategies I run simultaneously, the more likely I am to get this error. It's not uncommon for me to run 100-300 strategies simultaneously. I'm conjecturing that when I have all these strategies running simultaneously, and some of them submit orders at the exact same moment, then a centralized resource is becoming confused. If I run, say, 50 strategies simultaneously, I don't get this error.

    In my code, I'm using EnterLong() and EnterShort(), so it's the system generating the OCO ID.

    Therefore, the only fix to this error is to run less strategies simultaneously - there is no configuration or programmatic fix. Would this be correct?

    Thanks,




    Last edited by timmbbo; 07-25-2023, 08:44 AM.

    #2
    Hello timmbbo,

    Thanks for your post.

    Please write in to support[at]ninjatrader[dot]com and send us your log and trace files by following the steps below so we may look into this further. In the subject line of the email, include "ATTN: BrandonH" and in the body of the email please include a line to this forum thread.

    Follow the steps below to manually attach your log and trace files to your response so I may investigate this matter further.
    • Open your NinjaTrader folder under, "Documents" (sometimes called, "My Documents")
    • Right click on the 'log' and 'trace' folders and select Send To> Compressed (zipped) Folder.
    • Send the 2 compressed folders as attachments to this email.
    • Once complete, you can delete these compressed folders.

    Also, so that I may accurately assist, please answer the questions below in the email you send as well.I look forward to assisting further.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    53 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    130 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    70 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    44 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X