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 Script | CloseOrdersBySymbol

MetaTrader Experts, Indicators, Scripts and Libraries

The script closes all pending orders on the current symbol.

Script input parameters:

//+----------------------------------------------+
//| SCRIPT INPUT PARAMETERS                      |
//+----------------------------------------------+
input uint RTOTAL=4;        // Number of attempts in case of unsuccessful trades
input uint SLEEPTIME=1;     // A pause between the attempts in seconds
input uint  Deviation_=10;  // Price deviation
18079

Best MetaTrader Indicators + Profitable Expert Advisors