PC Close positions or delete pending orders in bulk
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. Please note that when using bulk operations, you must first enable the one-click trading feature.(*1)
Related article: Enable one-click trading
Here we'll take a look at how to close positions or delete pending orders in bulk in MT5.
(*1)Bulk closing of positions or deleting pending orders is only available in MT5.
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.


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


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.
In MT5, there are "hedging account", which allows hedged positions, and "netting account", which does not. Most forex brokers offer hedging accounts.
On the 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


Number |
Item name |
Descriptions |
---|---|---|
1 |
Delete (symbol name) Orders |
Delete all pending orders for the same symbol as the selected position. |
2 |
Buy/Sell |
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.


Was this article helpful?
0 out of 0 people found this article helpful.
Thank you for your feedback.