Terminal
- Significantly expanded AI Assistant's capabilities for interacting with the trading platform via MCP.
Over 40 new tools have been added that allow AI agents to manage MQL5 services, customize charts, work with graphical objects, retrieve market depth data, verify trading operations, and perform other actions directly in the terminal.
Managing MQL5 Services
AI agents can receive a list of registered services and information about their status, start and stop services, register new instances and delete existing ones. It is also possible to obtain input parameters of services, which allows taking their settings into account when executing tasks.
Setting up charts and working with templates
Added tools for changing the symbol and timeframe, managing display properties, navigating through history, and creating chart snapshots. AI agents can also save current chart settings to a template and delete unnecessary templates.
Handling graphical objects
AI agents can retrieve a list of objects on the chart, create new ones, change their properties, and delete existing ones. This allows users to automatically apply trend lines, levels and other elements of technical analysis to charts.
Access to the market depth
New tools allow users to subscribe to market depth updates and receive current Bid and Ask levels with prices and volumes. This data can be used to analyze market liquidity and order distribution.
Checking trading operations and calculating margins
AI agents can calculate required margin and potential profit or loss, as well as pre-screen market and pending orders based on available funds and trading limits. All calculations and checks are performed without sending real trade requests.
Managing chart profiles
Added the ability to view saved profiles, create new ones, switch between them, and delete unnecessary ones. This allows AI agents to manage the terminal workspace, including the set of open charts and their settings.
Handling alerts
AI agents can create, view, edit, enable, disable, and delete alerts. For example, users can ask the Assistant to set up a notification when a certain price is reached or a set time arrives.
Terminal info and financial news
Added tools for obtaining information about the terminal status, connection to the trading server, and system resource usage. AI agents can also receive a list of available financial news and read its contents for subsequent analysis.
Managing test results windows
AI agents can receive information about open windows of testing results and strategy optimization, and close completed windows. This makes it easier to work with the results when testing multiple strategies sequentially.
With new tools, AI Assistant can perform more complex, multi-step tasks, combining market data analysis, workspace customization, and trading decision preparation. For example, users can ask the Assistant to open a chart of the desired instrument, customize its display, add technical analysis levels, check the parameters of the proposed trade, and create an alert when a specified price is reached.

- Fixed issues with MCP tools. AI Assistant now correctly handles orders with the Immediate or Cancel fill policy and preserves the expiration time of pending orders when changing Stop Loss or Take Profit levels. Checking of trading command parameters, obtaining information about trading operations by tickets, and filtering economic calendar events by time have also been fixed.
- Fixed the operation of the trailing stop after activating a pending order: further processing uses the ID of the created position. The rounding of stop levels, which was erroneously limited to four digits, has also been fixed.
- Fixed updating and storing of custom symbol history:
- Fixed issues with updating bars and deleting ranges of historical data, including when using CustomRatesUpdate.
- Fixed the loss of the last bar when rebuilding the cache.
- Improved processing of history deletion requests and optimization of bar and tick data storage.
- Fixed an issue where the profit currency for Forex symbols could be incorrectly determined based on part of the symbol name.
- Fixed handling of time in 12-hour format (AM/PM) when importing tick data.
- Fixed errors in calculating financial results in the trading report. They could arise for reversal and close operations on netting accounts.
- Improved operations with payments.
- The main page has been redesigned, with more compact deposit and withdrawal sections.
- Updated the design of the cryptocurrency deposit page making the process more user-friendly.
- Added the ability to download invoices for completed bank transfers.
- Fixed payment status update.

- Fixed pasting login and password from the clipboard into the account connection window.
- Improved the dark theme of the interface, in particular the display of the drop-down calendar, fields for managing the date and time, as well as the labels and borders of some other controls. Corresponding improvements have also been applied to the MetaEditor and Strategy Tester.
- Fixed work with charts: dragging tabs, closing EA properties and selecting the desired chart by ID from MQL5 programs.
- Fixed saving existing global variables when adding new ones.
- Updated ONNX components for GPU. If you use ONNX, upgrading the platform will install the CUDA 13 and TensorRT 11 packages, and remove the legacy TensorRT 10 DLLs.
- Improved work with MQL5.community services:
- Improved hints for login and password fields in the authorization window.
- Fixed display of descriptions for Market products.
- Fixed chat cache synchronization.
- Increased the minimum required Wine version for running Terminal on macOS and Linux. Now you will need Wine 11 or higher.
- Fixed synchronization of order and deal history and corrected the display of account history. These issues could occur when trading transactions arrived continuously, with many deals per second.
- Fixed the check for open charts when removing a symbol from Market Watch. In some cases, the check could fail and allow a symbol to be removed, causing errors in the terminal.
- Fixed the date and time controls. You can now enter values correctly using the keyboard.
MQL5
- Added new functions for writing complex numbers to files: FileWriteComplexDouble, FileWriteComplexFloat, FileReadComplexDouble, FileReadComplexFloat.
- Optimized ClassificationMetric, ClassificationScore, PrecisionRecall and ReceiverOperatingCharacteristic method calculations.
- Changed FileWrite function operation logic. Now it can work not only with text and CSV files, but also with binary ones - data is written to them without conversion. In addition, support for complex numbers has been added to the function, and the maximum number of parameters has been increased to 256.
- Added a universal version of the FileRead function to read multiple values from CSV, TXT and BIN files. It mirrors the FileWrite function. Parameters are passed by reference, the function returns the number of values read. Reading strings from binary files is not supported because their length is not known in advance.
- Added functions for converting complex numbers to strings and back: ComplexToString and StringToComplex. Also fixed formatting complex numbers.
- Added support for complex matrices for the following matrix and vector methods:
- Product: Power, Kron, Inner, Outer, CorrCoef, Cov, Correlate and Convolve. The Power method uses the OpenBLAS functions GETRF, GETRI and GEMM. The calculation of the matrix power has also been optimized.
- Transformation: Cholesky, Eig, EigVals, LU, LUP, QR and SVD. Both real and complex calculations are performed using the corresponding OpenBLAS functions.
- Features: Norm, Cond, Det, SLogDet, Rank, Trace and Spectrum. OpenBLAS GETRF is used to calculate the determinant, and GESVD is used to calculate the rank.
- Statistics: Sum, Prod, CumSum, CumProd, Median, Mean, Average, Std, Var and LinearRegression.
- Changed the logic for calculating the matrix spectrum using the Spectrum method. Previously, for all matrices, eigenvalues were calculated from the product AT * A. Now the calculations depend on the matrix type. For square symmetric and Hermitian matrices, the eigenvalues are calculated using the OpenBLAS SYEV and HEEV methods, respectively; for other square matrices, GEEV is used. For rectangular matrices, singular values are calculated using GESVD.
- Changed the calculation logic for the spectral norm of a matrix: it is now equal to the maximum modulus of complex spectrum values (spectral radius). In some cases it coincides with the matrix 2-norm (MATRIX_NORM_P2).
- Improved numerical stability of matrix calculations: quadratic norms, Softmax activation function, and pseudoinverse matrix. Also fixed the handling of invalid numbers when calculating quantiles and percentiles.
- Fixed errors in matrix and vector operations. Unified checks for dimensions, indices, band storage, permutations, sparse COO matrices, and SSA input parameters; handling of BLAS errors and MatrixPower boundary values. Also fixed ArrayArgSort, Tri, Row, Col and ConfusionMatrix.
- Changed alignment of inherited structures with pack(N). This change affects binary layout compatibility.
In the example below, sizeof(B) changes from 17 to 24, sizeof(C) — from 18 to 32, and the offset of C::b — from 1 to 8.struct A pack(8) { double d; char c; }; struct B pack(8) : A { char e; }; struct C pack(8) { char x; B b; }; int OnStart(void) { B arr_b[10]; ::Print("sizeof(A) = ",sizeof(A)); ::Print("sizeof(B) = ",sizeof(B)); ::Print("sizeof(C) = ",sizeof(C)); ::Print("sizeof(B[10]) = ",sizeof(arr_b)); return(0); }
Result before the fix:sizeof(A) = 16 sizeof(B) = 17 sizeof(C) = 18 sizeof(B[10]) = 170
Results after the fix:sizeof(A) = 16 sizeof(B) = 24 sizeof(C) = 32 sizeof(B[10]) = 240
When using such structures for binary files and data exchange, format checking is required.
- Fixed initialization of structures, unions and arrays, including pack(N).
- Fixed type compatibility in the matrix multiplication operator @.
- Fixed processing of strings and constants: escape sequences \x, unsigned subtraction and unary minus when collapsing constants. Also fixed the behavior of ArrayCopy when copying a string array to itself, memory allocation errors, and string formatting. The string constant limit has been increased from 64,000 up to 1 million symbols.
- Fixed writing of ANSI/CSV files: calculation of buffers in encoding bytes, accounting for actually converted characters and conversion results.
- Fixed operations with databases:
- DatabasePrepare string parameters are saved for the duration of the request.
- Blocked access outside the sandbox via SQLite URI/VFS.
- Enabled the exact path file file::memory: for a private memory database.
- Fixed handling resources, DirectX and OpenCL, in particular, working with image and buffer sizes, static arrays and kernel names. Also fixed the release of graphical objects.
- Fixed operation of built-in indicators at extreme parameters and unusual price ranges. In particular, fixed the calculation of initial values, periods and shifts, as well as overflow and buffer out-of-bounds errors. The changes affected TRIX, Stochastic, OsMA, DEMA/TEMA, FRAMA, VIDYA/CMO, AMA, LWMA, RSI, Gator, Williams %R and SAR indicators.
- Fixed the availability of previously loaded M1 bars via CopyRates after changing the chart using the ChartSetSymbolPeriod function.
- Fixed tick copying in CopyTicks and CopyTicksRange. In some cases, this could cause the terminal to crash.
- Fixed conversion error reporting in StringToComplex.
- Improved the overloads of Concat and Split that accept an axis argument.
- Improved lexicographic ordering of complex numbers.
- Improved numerical stability for the Softmax derivative, LinearRegression, and quantile calculations for float values.
- Fixed internal routines for determining solution matrix dimensions, reading symmetric tridiagonal matrices, processing SVD results, and initializing permutation indices. Improved checks for workspace array allocation and operation status before populating the result.
- Fixed an issue when using FileWriteString to write an empty string with a specified length to an ANSI file.
- Fixed error reporting in DatabaseReset when the query handle is invalid. The function now returns false in these cases.
- Fixed image resource loading.
- Fixed how the start parameter passes offsets to DXBufferSet and CLBufferRead/CLBufferWrite for timeseries arrays. Also fixed texture cleanup when an error occurs.
- Added the MQL_MATH_MODE property for determining whether the Strategy Tester is in mathematical calculations mode via MQLInfoInteger.
- Fixed overflow handling when converting a string to an integer using StringToInteger.
- Fixed memory leaks when processing ONNX outputs of type seq(map). Also fixed updating of the output tensor cache after a call to OnnxSetOutputShape.
- Fixed issues with ArrayCopy and ArrayCompare on arrays larger than 4 GB.
MetaEditor
- Improved MCP tools for the built-in AI Assistant:
- Improved search in MQL5.com contents.
- Improved processing of diagrams and command results.
- Fixed the check of allowed directories for reading, writing and running files.
- Added support for the /utf8 command-line operation for compiling MQL5 programs from the command line. When using it, the log is written in UTF-8 without BOM, without it — in UTF-16 with BOM.
- Fixed working with Git, in particular, synchronizing changes in the project from the repository and updating file status icons after rolling back changes with the Git Revert command.
- Fixed display of local variables when debugging.
- Added warning output for errors occurring when importing functions from .NET libraries. Added validation of imported CLR metadata, including date/color literals, template definitions and nested array types.
- The debugger now receives detailed messages for critical errors, including those in third-party DLLs. Fixed an issue with large stack frames in the profiler.
- The compiler now writes the EX5 file to a temporary file before replacing the final output.
Tester
- Fixed trade calculations and operation simulation:
- Daily commission calculation for the first day
- Commission calculation for Close By operations
- Closing positions by Stop Out
- Position rollovers
- Calculation of profit for all open positions
- Calculating swap in points in the absence of a conversion rate
- OrderCheck function operation
- Fixed tick generation:
- Price sequence in OHLC mode on M1
- Volume calculation when filling gaps in price history
- Calculating the custom spread for the first minute of the day
- Tracking missed ticks with millisecond accuracy.
- Fixed transmission of the real volume value on additional (non-main) timeframes and of the SYMBOL_TIME_MSC value for secondary testing symbols.
- Fixed trading history selections:
- Access to orders and trades after calling HistorySelectByPosition.
- Calling HistorySelect when multiple trades or orders appear within one second.
- Fixed pausing the visual testing.
- Fixed errors in the operation of the chart, data windows, indicators, and objects when the interface and the testing thread were running simultaneously.
- Fixed several issues with graphical objects and chart events in the visual tester. The fixes cover levels, timeframes, object deletion, nested charts, scaling, and template application. The fixes also affected the operation of the ObjectGet*, ObjectsDeleteAll, and ChartSet* functions in the tester.
- Fixed copying and pasting test settings from the clipboard by pressing Ctrl+C/Ctrl+V in the corresponding window.
- Fixed saving custom forward test date.
- Fixed issues with trading environment settings: loading non-trading intervals, applying a symbol price change threshold, saving commission modes and loading a SET file version.
- Fixed distribution of optimization passes between agents. Errors occurred during genetic and forward testing with a large number of passes. Also fixed agent reuse and detection of slow agents.
- Fixed installation, launch and shutdown of agents, handling of connection errors and waiting for history synchronization.
- Eliminated unnecessary loading of the market environment in math mode.
- Improved performance of historical databases and tester caches: reading and packing price data, rebuilding timeframes, freeing the cache between passes, and detecting incomplete data.
- Enhanced data checks on remote agents: task sizes, parameter strings, buffer synchronization upon stop.
- Fixed memory leaks when working with menus, highlighting log lines, and displaying a list of operations in the order and deal display mode.
- Improved detection of available physical memory for agents. Now several sources are used for this, from which the minimum value is selected.
- The MQL5 Cloud Network no longer assigns tasks to agents that incorrectly report more free memory than total memory.
- Fixed an issue that caused OnTick events to stop even though unprocessed ticks remained in the history.
- Fixed the display of settings fields after restarting the terminal. The issue occurred when the Strategy Tester was set to mathematical calculations mode.
- Fixed initialization of the test results window. This issue could cause the terminal to crash.
Web Terminal
- Fixed scaling of charts after changing the number of decimal places for a symbol.
- Fixed and optimized updating of price history. Eliminated leaks, while tick synchronization no longer causes unnecessary bar rebuilding.
- Fixed checks for password change rights for an account.
- Fixed account connection with a large number of available trading symbols.









































