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,

Comment