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-positionsCheers
Francisco