| SmartQuant Discussion http://www.smartquant.com/forums/ |
|
| Closing an order http://www.smartquant.com/forums/viewtopic.php?f=86&t=14801 |
Page 1 of 1 |
| Author: | gorogm [ Fri Feb 23, 2018 7:42 pm ] |
| Post subject: | Closing an order |
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 |
|
| Author: | skuvv [ Tue Feb 27, 2018 11:47 am ] |
| Post subject: | Re: Closing an order |
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. |
|
| Author: | gorogm [ Wed Feb 28, 2018 11:23 pm ] |
| Post subject: | Re: Closing an order |
Thanks a lot skuvv!! |
|
| Page 1 of 1 | All times are UTC + 3 hours |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|