CloseMultipleOrders – script MetaTrader 4

A simple script to close multiple market orders.

Input parameters:

  • ClossAll -> If this parameter is set to true, all orders (Buy, Sell, Pending orders) are close. This parameter supercedes every other.
  • CloseBuyOders -> Closes only Buy orders. If ‘CloseOnlyProfit is set to true it closes only Buy positions in profit.
  • CloseSellOrders -> Closes only Sell Orders. If ‘CloseOnlyProfit’ is set to true it closes only Sell positions in profit.
  • CloseBuyLimits -> Delete all BuyLimit pending orders if set to true.
  • CloseSellLimit -> Delete all SellLimit pending orders if set to true.
  • CloseOnlyProfit -> Will close only trades in profit. If ‘CloseAll’ is set to true, this parameter will be ignored and all trades will be closed
  • Slippage -> The minimum allow Slippage. Leave current settings intact if unsure of slippage to apply.
Alternative:  Extrem_N_HTF - indicator MetaTrader 5

CloseMultipleOrder

Please make sure you enable automated trading in your terminal, as the figure below, for scripts to function.


📈 ROBOTFX MetaTrader Expert Advisors and Indicators to maximize profits and minimize the risks