The bulk operation function is available in MT5. (MT4 does not have a batch payment function.)
To make bulk operations, first, turn on One-Click Trading:
(1) From the "Tools" menu, click "Options."
(2) Click the "Trading" tab and check "One-click trading".
(3) A disclaimer about one-click trading will be displayed, so click "I agree to these terms of use" and put a checkmark. Press the "OK" button to close the window.
(4) When you return to the "Options" screen, click the "OK" button to return to the transaction screen.
The method of "bulk operation" is as follows.
Right-click on the position displayed in the "Trading" tab of the "Toolbox" → Select the batch settlement to be executed from "Bulk operation".
[Settle all positions]
Close all open positions.
[Settle profitable positions]
Close all profitable positions.
[Close a position with a loss]
Close all losing positions.
[Settle a buy (or sell) position]
Close all buy (or sell) positions regardless of the symbol.
[Settle (stock name) position]
Regardless of whether you buy or sell, all positions of the stock will be closed.
[Settle buy (or sell) (stock name) position]
Close all buy (or sell) positions for that symbol.
[Settlement with (brand name)]
Not available for Titan FX
You can also bulk delete pre-orders.
[Delete all orders]
Delete all pre-orders.
[Delete Limit Order]
Delete all limit orders.
[Delete stop order]
Remove all stop orders.
[Delete stop limit order]
Delete all stop-limit orders.
[Delete the (stock name) order]
Deletes all pre-orders for that brand regardless of the pre-order method.
[(method name) (instrument name) delete order]
That formula deletes all pending orders for that symbol.