Please use this thread to discuss our Close All Orders (Positions) MetaTrader script. It's a simple script to mass-close orders in MT4 or positions in MT5. You can download the script from its description page (linked earlier) and ask any questions about this free script here.
Dear fellow traders.
I would like to have EA that close all pending orders if there is no open order on current EA loaded chart symbol. Kindly somebody help me.
Kind Regards
Do you have a better close all function for MT5?
The following function fail to close everything.
It was executed in the expert but at the journal, shows that 2 positions does not exist.
I have 4 opened trades and it only closes 2.
void CloseAll3()
{
for (int i=PositionsTotal()-1;i>=0...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.