Hedging Account Strategy: Consolidating Multiple Positions on MQL5

 

HI!

I have an advisor that, while trading, frequently opens multiple positions in the same direction. The inquiry is: how can these various positions be consolidated? For instance, I currently hold 10 long positions of 0.1 lot each and 3 short positions of 0.2 lot each. What is the method to merge these positions so that, from the 10 long positions of 0.1 lot each, I end up with 1 long position of 1 lot and 1 short position of 0.6 lot, without utilizing a netting account which is not viable in this situation?

 

You can close all 0.1 lots and open 1 lot exactly at the same time.

Note: You loose some commission fee.

Why do you want to do that? Just let it run.

 
Yashar Seyyedin #:

You can close all 0.1 lots and open 1 lot exactly at the same time.

Note: You loose some commission fee.

Why do you want to do that? Just let it run.

no, i can't. The  number of positions is  big.

 
ze21 #:

no, i can't. The  number of positions is  big.

4=2+2=1+1+1+1  

IDK If you get what I'm trying to say, it's the same thing. 
 
Gamuchirai Zororo Ndawana #:
4=2+2=1+1+1+1  

IDK If you get what I'm trying to say, it's the same thing. 

no, not getting

Reason: