Dukascopy Support Board
http://www.dukascopy.com/swiss/english/forex/jforex/forum/

Merge positions
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=146&t=57620
Page 1 of 1

Author:  BilboFX [ Thu 11 Mar, 2021, 18:51 ]
Post subject:  Merge positions

Dear All,

In a strategy I'm developing in a certain moment I would like to check if there are multi-positions of the same pair opened and merge them, but I didn't see any function in VJForex that can help me to do so.

Do you have any idea about a suitable solution for this request?

Thanks in advance for your help and support.
Best regards.

Author:  frangonve [ Thu 18 Mar, 2021, 05:02 ]
Post subject:  Re: Merge positions

I think you can't merge positions using VJForex as the merge positions method IEngine.mergeOrders is not implemented in the platform.
Perhaps you find useful this article in Dukascopy wiki about merging positions using JForex API:

https://www.dukascopy.com/wiki/en/development/strategy-api/orders-and-positions/merge-positions

Cheers
Francisco

  Page 1 of 1