MetaTrader 5 Platform Update Build 6140: AI Assistant and Web Terminal Improvements
MetaQuotes
Terminal
- Added support for a wide range of new LLM providers for the AI Assistant, including Alibaba, Atomic Chat, Bitdeer AI, Cerebras, z.ai, and others. You can now choose from an even broader choice of models and pick the one best suited to a particular task, whether it involves market analysis, coding, or developing trading applications.
To connect a provider, open the settings and enter the corresponding API keys:

- Added the ability to delete AI Assistant chats. To delete a chat, use the Navigator context menu or select the chat and press the Delete key:

- Optimized the operation of MCP Tools. Added a tool for stopping the Strategy Tester.
- Changed the context window size for the built-in MQL5.community AI provider. The context window has been reduced from 1 million to 500,000 tokens. This is still sufficient for working with large projects, analyzing substantial amounts of code, and conducting extended conversations with the agent.
- Fixed an issue with modifying Stop Loss and Take Profit levels for pending orders through the AI Assistant. When performing this operation, the order expiration time could previously be reset incorrectly if one had been set by the user.
- Fixed an issue with accounts added to Favorites in the Navigator. When opening the connection dialog for a favorite account, the authorization details are now populated correctly.
MQL5
- Added the MathCompareByDigits function. It compares two numbers for equality based on the precision of their significant digits. The function is useful when the magnitude of the numbers being compared is unknown in advance, as well as for complex numbers whose real and imaginary parts may differ significantly in magnitude.
- Fixed the const correctness of the Std, Var, and Cov matrix and vector methods when used with the ddof parameter.
- Fixed the reading and writing of special floating-point values (nan, snan, ind, inf, -inf) by the ReadCSV and WriteCSV methods for matrices and vectors.
MetaEditor
- Fixed the saving of the last active tab in the Navigator. When you restart the application, it will now reopen to the same section where you were last working.
Tester
Web Terminal
- Fixed the saving of Depth of Market settings when reopening the window.
- Fixed the Depth of Market context menu. It now automatically closes after a setting is selected.
- Improved chart scaling. When you hover the cursor over the price or time scale, the corresponding zoom indicator is now displayed.
- Improved chart interaction. Accidental clicks in the corner area between the time and price axes will no longer affect the chart.
- Improved double-click handling. Small cursor movements between clicks will no longer interfere with double-click detection.
- Improved the stability of symbol switching. Rapid successive switches are now processed sequentially, preventing outdated requests from overriding the currently selected symbol.
- Fixed an issue with chart scrolling.
See the previous news, please: