Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 4 Script | CloseAllTrades

MetaTrader Experts, Indicators, Scripts and Libraries

Description:

My first script, use for critical situation when something goes wrong and I want quickly close all trades.

Repaired, so it closes first the opened trades and than the pending orders.

  • CloseAllTrades - closes all opened and pending orders on all symbols;
  • CloseAllTradesCurrent - closes all opened and pending orders on current chart;
  • CloseAllTradesOpened - closes all opened orders on all symbols;
  • CloseAllTradesOpenedCurrent - closes all opened orders on current chart;
  • CloseAllTradesPending - closes all pending orders on all symbols;
  • CloseAllTradesPendingCurrent - closes all pending orders on current chart;
  • CloseAllTradesBuy - closes all opened buy orders on all symbols;
  • CloseAllTradesBuyCurrent - closes all opened buy orders on current chart;
  • CloseAllTradesSell - closes all opened sell orders on all symbols;
  • CloseAllTradesSellCurrent - closes all opened sell orders on current chart.
9687

Best MetaTrader Indicators + Profitable Expert Advisors