|
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.
|