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.
MetaQuotes released a new version of the MetaTrader 5 platform yesterday - Build 3260. It is now available via automatic update in your broker's platform. The update adds some exciting new features to the MT5 platform:
Added a bulk position closing facility - you no longer need specialized...
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...