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 5 Expert Advisor | Close panel

A panel based on class CDialog works for all symbols and magic numbers. It has three buttons based on class CButton

  • "Close all" - closing all positions
  • "Close loss more ... " - closing losing positions only, moreover, only those having the loss exceeding the Loss parameter
  • "Close profit more ... " -closing profitable positions only, moreover, only those having the profit exceeding the Profit parameter
All trades are performed within one run: If an error occurs during closing, then this error will not be processed in any way.

MetaTrader Experts, Indicators, Scripts and Libraries

23450