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 | Sequentially Close all trades in MT4

MetaTrader Experts, Indicators, Scripts and Libraries

This simplae script will first sort the open tickets in asending order. Then it will try to close them sequentially. That means the first trade will be closed first then the 2nd one, then 3rd one . the process will continue till all the trades will be closed.

As usual we have magic and symbol filter

49586