SmartQuant Discussion
http://www.smartquant.com/forums/

Cancel Pending Orders
http://www.smartquant.com/forums/viewtopic.php?f=60&t=10637
Page 1 of 1

Author:  azuric [ Tue Nov 12, 2013 4:39 pm ]
Post subject:  Cancel Pending Orders

Is it possible to cancel a pending new order or do you have to wait till it reaches new state?

Author:  Alexei Kurov [ Tue Nov 12, 2013 5:38 pm ]
Post subject:  Re: Cancel Pending Orders

In theory, yes.
But, it may depends on execution provider you use.

Author:  azuric [ Tue Nov 12, 2013 10:15 pm ]
Post subject:  Re: Cancel Pending Orders

Also I am correct in saying that the order must not null if it is in a pending state.
ie
(order == null && order.IsPending) will always return false.

Author:  Alexei Kurov [ Wed Nov 13, 2013 10:00 am ]
Post subject:  Re: Cancel Pending Orders

hmm...
excuse me, but I do not understand the situation clearly.
if you assign 'order' variable then it should never be null till you set null value manually

Author:  azuric [ Wed Nov 13, 2013 10:43 am ]
Post subject:  Re: Cancel Pending Orders

Wait it was a silly question.

Page 1 of 1 All times are UTC + 3 hours
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/