Using CloseAll; how does mt5 close all or partial position?

 

When offsetting or closing existing trades, does MT5 close desired trades by offsetting 1 time the necessary lots?   Or does it still close each existing trade out.

Example.

Buy EURUSD 0.1 lots, Buy EURUSD 0.4 lots, Buy EURUSD 0.3 lots, Buy EURUSD 0.15 lots, Buy EURUSD 0.5 lots, Buy EURUSD 0.35 lots, Buy EURUSD 0.6 lots

Total Long (buy) EURUSD 2.4 lots.

Now I would like to closeall trades.  I initiate a closeall command.

The terminal Sells one order of 2.4 lots EURUSD? or

The terminal Sell EURUSD 0.1 lots, Sell EURUSD 0.4 lots, Sell EURUSD 0.3 lots, Sell EURUSD 0.15 lots, Sell EURUSD 0.5 lots, Sell EURUSD 0.35 lots, Sell EURUSD 0.6 lots?

I want to confirm I understand how the net position thing works.  If it can close the net position with a single order to offset each pair, this is wonderful news for basket trading :)

 
4evermaat:

When offsetting or closing existing trades, does MT5 close desired trades by offsetting 1 time the necessary lots?   Or does it still close each existing trade out.

Example.

Buy EURUSD 0.1 lots, Buy EURUSD 0.4 lots, Buy EURUSD 0.3 lots, Buy EURUSD 0.15 lots, Buy EURUSD 0.5 lots, Buy EURUSD 0.35 lots, Buy EURUSD 0.6 lots

Total Long (buy) EURUSD 2.4 lots.

Now I would like to closeall trades.  I initiate a closeall command.

The terminal Sells one order of 2.4 lots EURUSD? or

The terminal Sell EURUSD 0.1 lots, Sell EURUSD 0.4 lots, Sell EURUSD 0.3 lots, Sell EURUSD 0.15 lots, Sell EURUSD 0.5 lots, Sell EURUSD 0.35 lots, Sell EURUSD 0.6 lots?

I want to confirm I understand how the net position thing works.  If it can close the net position with a single order to offset each pair, this is wonderful news for basket trading :)

It will close the net position in a single order if the position volume is less than maximum lot size. I am trying for championship, where maximum lot size for single order is 5 lot. If your broker also has limit of 5 lots, then upto 5 lots, it will close in single order. Otherwise it will use more than one order to close net position. e.g., if your net volume is 12 lots, then it will close in 3 orders, 5, 5, and 2 lots.