One of the errors is that it tries to reuse an OCO ID. I have zero clue on how to prevent this from happening, as all I'm setting in the strategy is the Stop Loss and the Profit targets. I'm unaware that I'm generating anything related to an OCO ID and of course the error doesn't occur every time, only randomly.
Another error that was generated today was an attempt to modify an order with a price that had nothing to do with the order that was being generated. This might be OCO related but the log did not mention anything about an OCO error.
I'm a little lost as I've written multiple strategies before and never once had this problem. The only difference this time is that it's a tick strategy. I am placing my stop loss 6 ticks back from the entry price, so I don't think it's an issue of incorrect stop placement.
Comment