PC Close positions or delete pending orders in bulk

good

This article was : 

published

updated

On MetaTrader5 (MT5), you can close multiple positions or delete multiple pending orders in bulk. The positions and pending orders for bulk operations can be specified by symbol, order type, and others. Here we'll take a look at how to close positions or delete pending orders in bulk in MT5. Please note that when using bulk operations, you must first enable the one-click trading feature.

Related article: Enable one-click trading

Step 1

Click the "Trade" tab of the Toolbox and right-click on an order or on any non-order area. Then hover the pointer over "Bulk Operations" in the context menu.

Select Bulk Operations Select Bulk Operations

Step 2

Choose the operation you wish to perform from the list. Different operations are displayed depending on where in the Toolbox you right-clicked.

Right-clicking on a non-order area

When you right-clicked on a non-order area, it shows seven bulk operations that are not symbol-specific.

Bulk operation menu Bulk operation menu

Bulk closing

Number

Item name

Descriptions

1

Close All Positions

Close all open positions in bulk.

2

Close Profitable Positions

Close all profitable positions in bulk.

3

Close Losing Positions

Close all losing positions in bulk.

Bulk pending order cancelation

Number

Item name

Descriptions

4

Delete All Orders

Delete all pending orders.

5

Delete Limit Orders

Delete all limit orders.

6

Delete Stop Orders

Delete all stop orders.

7

Delete Stop Limit Orders

Delete all stop-limit orders.

Right-clicking on an order

When you right-clicked on an order, it shows the following operations along with the ones displayed when right-clicking on a non-order area.

Bulk closing

Bulk closing Bulk closing

Number

Item name

Descriptions

1

Close Buy/Sell Positions

Close all positions in the same direction as the selected one. This is for every symbol.

2

Close (symbol name) Positions

Close all positions for the same symbol as the selected one.

3

Close Buy/Sell (symbol name) Positions

Close all positions for the same symbol in the same direction as the selected one.

4

Close by (symbol name)

Close the hedged portion of the position for the same symbol as the selected position. Only the hedged portion of the selected positions will be closed. The size of the buy and sell positions to be closed are equal. If there is a difference in their size, the reduced portion of the larger position will remain.(*1)

(*1)Only available for hedging accounts supporting "Close by"

"Close by (symbol name)" is only available if your broker is supporting the "Close by" feature, which closes the hedged positions saving the spread. If "Close by" is not allowed, the position will not be closed even if the option is displayed.

caution On netting accounts

In MT5, there are "hedging account", which allows hedged positions, and "netting account", which does not. Most forex brokers offer hedging accounts. On the MT5 netting account offered by some brokers, "Reverse Buy/Sell (symbol name)" will be displayed instead of "Close by (symbol name)". If you choose this command, the selected position will be closed and a new opposite position with the same lot size will be opened.

Bulk pending order cancelation

Bulk pending order cancelation Bulk pending order cancelation

Number

Item name

Descriptions

1

Delete (symbol name) Orders

Delete all pending orders for the same symbol as the selected position.

2

Buy/Sell
(order type) (symbol name) Orders

Delete all pending orders of the same order type and for the same symbol as the selected position.

Step 3

The corresponding positions and pending orders will be removed from the "Trade" tab in the Toolbox.

Bulk closing is completed Bulk closing is completed

Was this article helpful?

thumb_down No
thumb_down Yes

0 out of 0 people found this article helpful.

Thank you for your feedback.

Send