SmartQuant Discussion

Automated Quantitative Strategy Development, SmartQuant Product Discussion and Technical Support Forums
It is currently Fri Sep 21, 2018 9:32 am

All times are UTC + 3 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Closing an order
PostPosted: Fri Feb 23, 2018 7:42 pm 
Offline

Joined: Mon Oct 23, 2017 2:11 pm
Posts: 3
Dear OpenQuant 2014 users,
I have filled orders in OpenQuant 2014, and I need a way to close them. Is there a 'Close' command to finish the trade (but it shouldn't close my other open orders)? Or the suggested way is to place an other order with opposite side (buy vs sell)?
Thanks,
Márton


Top
 Profile  
 
 Post subject: Re: Closing an order
PostPosted: Tue Feb 27, 2018 11:47 am 
Offline

Joined: Wed May 05, 2010 9:49 pm
Posts: 438
Hello gorogm,
by default OpenQuant2014 work with positions instead of orders(like it in metatrader4),
so you cannot close the order because it just a deal for open, close or other purposes.

For working with order as it in mt4 you should use base type of strategy FXStrategy and ClId(magic numbers) for orders.
In this case Positiion will be something like order in mt4.
If you send 3 orders with different ClId, strategy will create 3 positions with these ClId.
Next, if you want to close one of positions, just sent order with opposite side for selected position and ClId.


Top
 Profile  
 
 Post subject: Re: Closing an order
PostPosted: Wed Feb 28, 2018 11:23 pm 
Offline

Joined: Mon Oct 23, 2017 2:11 pm
Posts: 3
Thanks a lot skuvv!!


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

All times are UTC + 3 hours


Who is online

Users browsing this forum: No registered users and 1 guest


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