Hi,
I'm submitting orders using the following code:
IOrder lOrder = orderEngine.submitOrder(pComment, pInstrument, pType, lContracts, 0, 0, lStopLoss, 0);
... sometimes nothing appears to happen.
By using print statements I've figured out the order is being set to IOrder.State.Canceled, but no message is displayed in the terminal.
Is this something to do with the slippage parameter being 0? I thought the order would just get executed at whatever price, given the price parameter is also 0?
Thanks,
David