If I have a limit order assigned to an IOrder name in a bar like:
MyOrder = ExitLongLimit();
And I want to switch to a market order the next bar without changing the IOrder name like:
MyOrder = ExitLong();
I have to Cancel previously the order: CancelOrder(MyOrder)
or I can do it directly?
Comment