I've come onto the forum today to query a similar issue and found this recent thread. Similarly to webus, I'm trying to attach a reversal order to just above a stop limit order, but I'm trying to do it in State.Realtime. I am using a managed approach, and have similar issues with getting the reversal to trigger. The error commonly received is: Order '9832749823749827492834' can't be submitted: the OCO ID 'insert string of numbers here' cannot be reused. Please use a new OCO ID: affted Order: Sell 1 Limit @ 11204.5'. So I've tried using an OCO counter to assign a new OCO string, but the error remained the same. The example here:
"private string GetUniqueOCOId()
{
string ocoId = ocoCounter.ToString();
ocoCounter++;
return ocoId;
}"
Is it impossible to reverse an order on stop without using an unmanaged approach?
Also, I found the video example to be extremely helpful and enlightening. Is there a repository of these videos somewhere?
Didn't mean to hijack the thread, but just add something similar and relevant.
Thanks,
J

Comment