entryOrder = SubmitOrderUnmanaged(0, OrderAction.Buy, OrderType.Limit, 1, entryLevel, 0, entryOrderName, "Limit Order " + currentHourStart.ToString());
I want to cancel the order later under some conditions. I called CancelOrder(entryOrder), and I get an exception when the code hits SubmitOrderUnmanaged method. The exception is "'SubmitOrderUnmanaged' method can't be called on managed strategies."".
If I prefer to keep the unmanaged approach for orders, could you tell me how to cancel entryOrder?

Comment