"Dear MetaQuotes Team,
I am a dedicated user of MetaTrader and a developer within the MQL5 community. As more traders and developers transition to MetaTrader 5 (MT5), I would like to provide some feedback regarding the improvement of the bulk operation functionality within MQL5.
Currently, one of the standout features of MT5 is the ability to perform bulk operations through the Bulk Operations menu in the terminal, which allows traders to close multiple positions with a single click. However, in MQL5 scripting, this operation can only be performed one-by-one using PositionClose() or trade.PositionClose() , which is very slow and inefficient when dealing with a large number of open positions.
As a developer working with MQL5, I see this as a significant bottleneck when trying to create automated trading scripts (Expert Advisors) that need to be efficient, particularly for traders who frequently trade large volumes or want to close positions quickly in volatile market conditions.
I would like to suggest that MetaQuotes consider adding support for bulk position closing within MQL5, similar to the functionality available in the MT5 terminal’s Bulk Operations menu. By adding this feature to the MQL5 API, developers and traders would be able to close positions in a single batch, reducing execution time and improving the overall trading experience.
This feature would not only improve execution efficiency, but it would also make MT5 more attractive to users looking to migrate from MT4, as it would give them more control and flexibility in automating their trades.
Thank you very much for your time and attention. I hope that this suggestion can be considered for future updates to MQL5 and MetaTrader 5, helping more traders and developers to experience the full potential of MT5 compared to MT4."
🌟 Why This Could Motivate Users to Migrate from MT4 to MT5:
-
Comparative Advantage of MT5: MQL5 already offers many advanced features compared to MQL4 (e.g., more order types, faster execution, more symbol support, and more flexible trading capabilities). Adding bulk operations to scripting would make the migration from MT4 to MT5 even more beneficial, especially for those who frequently close multiple positions at once.
-
Efficiency and Speed: Enabling developers to close positions in bulk will drastically improve execution time for Expert Advisors (EAs), which is crucial for fast-moving markets.
-
Attracting New Users: If this feature is implemented, many MT4 users who are hesitant to switch to MT5 will be more inclined to do so, as they will experience greater convenience and efficiency available in the MT5 terminal but with the added power of scripting.
Thank you for your suggestion.
NOTE-1: this forum is intended for user discussions, troubleshooting and sharing knowledge on trading and markets, rather than as a direct channel for development requests to MetaQuotes.
NOTE-2: the suggestions are posted in the official thread about builds, for example: https://www.mql5.com/ en/forum/478179

- 2024.12.13
- MetaQuotes
- www.mql5.com

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
"Dear MetaQuotes Team,
I am a dedicated user of MetaTrader and a developer within the MQL5 community. As more traders and developers transition to MetaTrader 5 (MT5), I would like to provide some feedback regarding the improvement of the bulk operation functionality within MQL5.
Currently, one of the standout features of MT5 is the ability to perform bulk operations through the Bulk Operations menu in the terminal, which allows traders to close multiple positions with a single click. However, in MQL5 scripting, this operation can only be performed one-by-one using PositionClose() or trade.PositionClose() , which is very slow and inefficient when dealing with a large number of open positions.
As a developer working with MQL5, I see this as a significant bottleneck when trying to create automated trading scripts (Expert Advisors) that need to be efficient, particularly for traders who frequently trade large volumes or want to close positions quickly in volatile market conditions.
I would like to suggest that MetaQuotes consider adding support for bulk position closing within MQL5, similar to the functionality available in the MT5 terminal’s Bulk Operations menu. By adding this feature to the MQL5 API, developers and traders would be able to close positions in a single batch, reducing execution time and improving the overall trading experience.
This feature would not only improve execution efficiency, but it would also make MT5 more attractive to users looking to migrate from MT4, as it would give them more control and flexibility in automating their trades.
Thank you very much for your time and attention. I hope that this suggestion can be considered for future updates to MQL5 and MetaTrader 5, helping more traders and developers to experience the full potential of MT5 compared to MT4."
🌟 Why This Could Motivate Users to Migrate from MT4 to MT5:
Comparative Advantage of MT5: MQL5 already offers many advanced features compared to MQL4 (e.g., more order types, faster execution, more symbol support, and more flexible trading capabilities). Adding bulk operations to scripting would make the migration from MT4 to MT5 even more beneficial, especially for those who frequently close multiple positions at once.
Efficiency and Speed: Enabling developers to close positions in bulk will drastically improve execution time for Expert Advisors (EAs), which is crucial for fast-moving markets.
Attracting New Users: If this feature is implemented, many MT4 users who are hesitant to switch to MT5 will be more inclined to do so, as they will experience greater convenience and efficiency available in the MT5 terminal but with the added power of scripting.