I can exit fine with market orders e.g.
ExitLong(BarsInProgress, enOrder.Quantity, enOrder.Name + "Exit", enOrder.Name)
ExitLongLimit(BarsInProgress, true, enOrder.Quantity, limitPrice, enOrder.Name + "Exit", enOrder.Name);
10/05/2011 14:45:00 Entered internal PlaceOrder() method at 10/05/2011 14:45:00: BarsInProgress=5 Action=Sell OrderType=Limit Quantity=739 LimitPrice=6.84 StopPrice=0 SignalName='CPE5Exit' FromEntrySignal='CPE5'
I tried getting rid of all my stop orders before exiting, e.g. using:
foreach ( IOrder stopLoss in stopLosses ) {
Print("Cancelling: " + stopLoss);
CancelOrder(stopLoss);
}

Comment