I have a question regarding unmanaged approach of OCO orders. Basically, within a NinjaScript strategy how can I cancel an OCO bracket without waiting to reach the set profit/stop threshold? say that I just want to stop/delete the OCO completely before it actually triggers the profit target or stop loss.
I used the cancelOrder() method with one of the OCO orders but although it showed as "cancelled" under the "Orders" tab of NT, the actual position still remains open and trading. I tried this with both playback and live simulation and the behaviour is exactly the same. I cannot find any information on how to cancel OCO orders.
I´d appreciate any help you can provide me on this.
Thanks

Comment