I'd appreciate your support
I've set an order with the following method:
myOrder = EnterLongStopMarket(barsInProgressIndex: 0, isLiveUntilCancelled: false, quantity: DefaultQuantity, stopPrice: GetCurrentAsk() * 1.01, signalName: string.Empty);
As of my knowledge if I have "isLiveUntilCancelled": false I must wait for the current bar to finish for this order to expire, but what can I do if it IsLiveUntilCancelled is false and let's way I want to cancel it before the bar closes, with something like a button for example? I've tried setting up a button to cancel the order, and it doesn't work, doesn't do anything.
Regards,
Comment