When an entry order is filled, I send a bracket order (takeProfit + stoploss) tied by an OCO-ID.
When one of the two orders is filled the other is canceled. Works fine.
However, if you cancel before one of the two orders with the CancelOrder function, the other order is not automatically canceled.
I think it should be automatically canceled because it is an OCO. Is it the way it should work?
Thanks
Edit:
this issue occurs in Historical only. In RealTime works fine.
Unmanaged = true
NT7B15
Comment