SmartQuant Discussion

Automated Quantitative Strategy Development, SmartQuant Product Discussion and Technical Support Forums
It is currently Fri Sep 25, 2020 7:29 am

All times are UTC + 3 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Cancel Pending Orders
PostPosted: Tue Nov 12, 2013 4:39 pm 
Offline

Joined: Wed Aug 08, 2007 6:32 pm
Posts: 236
Is it possible to cancel a pending new order or do you have to wait till it reaches new state?


Top
 Profile  
 
PostPosted: Tue Nov 12, 2013 5:38 pm 
Offline
Site Admin

Joined: Thu Jul 17, 2003 10:39 am
Posts: 1478
In theory, yes.
But, it may depends on execution provider you use.

_________________
SmartQuant Development Team


Top
 Profile  
 
PostPosted: Tue Nov 12, 2013 10:15 pm 
Offline

Joined: Wed Aug 08, 2007 6:32 pm
Posts: 236
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.


Top
 Profile  
 
PostPosted: Wed Nov 13, 2013 10:00 am 
Offline
Site Admin

Joined: Thu Jul 17, 2003 10:39 am
Posts: 1478
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

_________________
SmartQuant Development Team


Top
 Profile  
 
PostPosted: Wed Nov 13, 2013 10:43 am 
Offline

Joined: Wed Aug 08, 2007 6:32 pm
Posts: 236
Wait it was a silly question.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 3 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group