Close all open positions in one click - MetaTrader 4 Expert | MT4 EA Download - MetaTrader 4 Resources

Click the "Close All" button to close all open positions (regardless of currency pair) immediately.
This new version does not contain the previous version of code written below which could cause an infinite loop.
if (view order closed == false ) continue ;
But instead brought in an error control system to prevent infinite loops while still closing all transactions.
if (check order closed == false ) { integer error code = get last error (); if (errorcode== 1 ||errorcode== 2 ||errorcode== 5 ||errorcode== 6 ||errorcode== 64 ||errorcode== 65 ||errorcode== 132 ||errorcode== 133 ||errorcode== 139 ) rest ; Continue with others ; }

Attachment download
📎 1clickcloseallv01.mq4 (3.73 KB)
Source: MQL5 #14833
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •