Thanks for the reply.
So to avoid the OCO ID error, I should Buy at one tick above the ask and Sell at one tick below the bid? I am printing all the information, so I can definitely check that, but is that how I could avoid it? Or was that just an example?
Thanks for the link to the error for OnBar Update. I am using On price change instead of on bar close, I assume that has no relation to it? And I should still ensure that I am not calling anything from a previous bar?
Thanks a lot! This is very helpful!
David
Comment