MetaTrader 5 Platform Update Build 6140: AI Assistant and Web Terminal Improvements

An updated version of the MetaTrader 5 platform will be released on Friday, August 21, 2026.

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. 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. We have also optimized MCP Tools and added the ability to stop the Strategy Tester directly through an AI agent.

MetaTrader 5 Platform Update Build 6140: AI Assistant and Web Terminal Improvements

Another major focus of the update is the web terminal. We have improved chart scaling and controls, refined mouse interaction and symbol switching, and fixed issues with the Depth of Market. These changes make working with charts more accurate and convenient, especially when actively analyzing the market.

We are also continuing our comprehensive analysis and code audit of all platform components. We are addressing identified issues and implementing numerous internal improvements aimed at further enhancing the stability, reliability, and overall quality of MetaTrader 5.


MetaTrader 5 Client Terminal

  1. 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 support for new LLM providers


  2. Terminal: 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

  3. Terminal: Optimized the operation of MCP Tools. Added a tool for stopping the Strategy Tester.
  4. Terminal: 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. Terminal: 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. 
  6. Terminal: 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.
  7. 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.
  8. MQL5: Fixed the const correctness of the Std, Var, and Cov matrix and vector methods when used with the ddof parameter.
  9. MQL5: 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.
  10. 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.
  11. Tester: Fixed schedule configuration in the testing agent manager.

MetaTrader 5 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.


The update will be delivered through the Live Update system.

Bug report:

MT5 Build 6104-6120

Can not remove custom symbol.

Step:

1. Create some custom symbol group and symbols;

2. Open 'Symbols' window, right click on 'Custom' label

3. Choice "Remove Symbol Group", but do nothing

Xiangdong Guo #:

Bug report:

MT5 Build 6104-6120

Can not remove custom symbol.

Step:

1. Create some custom symbol group and symbols;

2. Open 'Symbols' window, right click on 'Custom' label

3. Choice "Remove Symbol Group", but do nothing

Confirmed and reported to MetaQuotes. Thank you.
How can the MQL5\Profiles\Agents folder be used?

There are two system prompts in it: metaeditor-default.md and metatrader-default.md. I think these are well-structured, so I don’t want to modify them.

However, if I want to add a separate, project-specific system prompt for individual projects, how can I do that?

There is also an MQL5\Profiles\Agents\config folder. What is this folder used for?
Toh4iem9 #:
However, if I want to add a separate, project-specific system prompt for individual projects, how can I do that?

Project-specific instructions have been announced but not yet implemented.


Hello.

I would like to inform you that after the update

- any actions on the control panel (visual control panels on the chart) have a double click - any click on any button is always a double action.


At the same time, on a normal schedule everything is ok.


Does this mean that Strategy Tester now receives events as on a real chart?

I just want to know, does Strategy Tester really receive chart events now? (yes its working :-) )



Will this be the case in the future?

This will determine whether to remove the current support for tester strategies in the form of reading button states or not?

I am experiencing a reproducible MCP authentication issue on MT5 build 6140. I documented the full reproduction steps in a separate topic here:
MetaTrader 5 build 6140 - MCP internal server returns 401 Unauthorized with generated API key
MetaTrader 5 build 6140 - MCP internal server returns 401 Unauthorized with generated API key
  • 2026.08.24
  • www.mql5.com
Hello, I am seeing a reproducible MCP authentication issue in MetaTrader 5 build 6140...
v6140 bug. Most recent position closed is hidden or not available immediately in Toolbox History. To see most recent position closed, user has has to force a selected date or "Entire History" then select "Today". Then the users last position closed will show. 
Bret Smathers #:
v6140 bug. Most recent position closed is hidden or not available immediately in Toolbox History. To see most recent position closed, user has has to force a selected date or "Entire History" then select "Today". Then the users last position closed will show. 
Clicking on the Time column heading in the History tab "fixed" that for me. Unfortunately that Time-based column sort is not saved upon restarting MT5.

In the Indicator List, INDICATOR_SHORTNAME is added in parentheses after the file name. It looks quite bulky and cluttered. I don't know if it has always been like this.

The screenshot shows MQL5\Indicators\Examples\MACD.ex5. Build 6140.