---
title: "MetaTrader 5 Platform Update Build 6140: AI Assistant and Web Terminal Improvements - Release Notes"
description: "The main highlight of this release is the expanded capabilities of the AI Assistant. We have added support for a wide range of new LLM... - Release Notes"
image: "https://www.metatrader5.com/c/17/1/build-6140-trader-1200-628.jpg"
---

# MetaTrader 5 Platform Update Build 6140: AI Assistant and Web Terminal Improvements

## The main highlight of this release is the expanded capabilities of the AI Assistant. We have added support for a wide range of new LLM providers, including Alibaba, Atomic Chat, Bitdeer AI, Cerebras, z.ai, and others

20 August 2026

### Terminal

1. Added support for a wide range of new LLM providers for the [AI Assistant](https://www.metatrader5.com/en/releasenotes/terminal/2447), 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 support for new LLM providers](https://www.metatrader5.com/c/17/1/terminal-ai-models.png)
2. 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:

   ![Terminal: Added the ability to delete AI Assistant chats](https://www.metatrader5.com/c/17/1/terminal-chat-delete.png)
3. Optimized the operation of MCP Tools. Added a tool for stopping the Strategy Tester.
4. 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.
5. Fixed an issue with modifying Stop Loss and Take Profit levels for pending orders through the [AI Assistant](https://www.metatrader5.com/en/releasenotes/terminal/2447). When performing this operation, the order expiration time could previously be reset incorrectly if one had been set by the user.
6. 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

1. Added the [MathCompareByDigits](https://www.mql5.com/en/docs/math/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.
2. Fixed the const correctness of the [Std](https://www.mql5.com/en/docs/matrix/matrix_statistics/matrix_std), [Var](https://www.mql5.com/en/docs/matrix/matrix_statistics/matrix_var), and [Cov](https://www.mql5.com/en/docs/matrix/matrix_products/matrix_cov) matrix and vector methods when used with the ddof parameter.
3. Fixed the reading and writing of special floating-point values (nan, snan, ind, inf, -inf) by the [ReadCSV](https://www.mql5.com/en/docs/matrix/matrix_write_read/matrix_read_csv) and [WriteCSV](https://www.mql5.com/en/docs/matrix/matrix_write_read/matrix_write_csv) 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

- Fixed schedule configuration in the [testing agent manager](https://www.metatrader5.com/en/terminal/help/mql5cloud/mql5cloud_install).

### Web Terminal

1. Fixed the saving of Depth of Market settings when reopening the window.
2. Fixed the Depth of Market context menu. It now automatically closes after a setting is selected.
3. Improved chart scaling. When you hover the cursor over the price or time scale, the corresponding zoom indicator is now displayed.
4. Improved chart interaction. Accidental clicks in the corner area between the time and price axes will no longer affect the chart.
5. Improved double-click handling. Small cursor movements between clicks will no longer interfere with double-click detection.
6. Improved the stability of symbol switching. Rapid successive switches are now processed sequentially, preventing outdated requests from overriding the currently selected symbol.
7. Fixed an issue with chart scrolling.

**Earlier publications:**

- [MetaTrader 5 Platform Update Build 6090: General Improvements](https://www.metatrader5.com/en/releasenotes/terminal/2450)
- [MetaTrader 5 Build 6060: AI Integration, Passkey, and Code Management Improvements in MetaEditor](https://www.metatrader5.com/en/releasenotes/terminal/2447)
- [MetaTrader 5 Platform Update Build 5830: General Improvements](https://www.metatrader5.com/en/releasenotes/terminal/2437)
- [MetaTrader 5 Platform Update Build 5800: Redesigned Trading Dialog and Improved Operations with CSV in MetaEditor](https://www.metatrader5.com/en/releasenotes/terminal/2436)
- [MetaTrader 5 Platform Update Build 5660: Improvements and Fixes](https://www.metatrader5.com/en/releasenotes/terminal/2432)
