entryOrder = SubmitOrderUnmanaged(1, isLong ? OrderAction.Buy : OrderAction.Sell, OrderType.Limit, quantityToTrade, 0, limitPrice, string.Empty, orderName);​
How is this possible with a limit order? I'm confused.
Update... I had my overload wrong. This is the correct way and now it's working:
entryOrder = SubmitOrderUnmanaged(1, isLong ? OrderAction.Buy : OrderAction.Sell, OrderType.Limit, quantityToTrade, limitPrice, 0, string.Empty, orderName);
