Can You Merge Positions in MT5?

New to MT5. Is there a way to merge all long or all short positions of a single instrument into one average position and perform trade operations on that one merged position? I’m dollar cost averaging over a long time horizon and I don’t want to have to deal with managing dozens of positions for the same instrument.

Or is the only way to effectively do this is to periodically close all positions on an instrument and immediately re-open them with the larger merged quantity (assuming fees don’t have a significant effect on profit). Only downside to that is the P/L figure on the new “merged” position is not going to truly reflect the P/L from when the original positions were opened.

I am pretty sure you cannot merge multiple positions into one average price as every position has its own open price which is fetched directly by the liquidity providers at the time of placing the order.
You can certainly lookout for various scripts which allow you to close multiple positions all together. You can dig in deep on the MQL5 community and search for such scripts like “Close all”
Download scripts for free for MetaTrader 5 in MQL5 Code Base have a look here.

1 Like