MetaTrader 5 Platform Beta Build 5540: General Improvements

 

The updated MetaTrader 5 platform will be released in beta mode on January 23, 2026.

In this version, we have improved ONNX support in MQL5. Models now run significantly faster on GPUs with CUDA support. In addition, we introduced support for new flags and revised the library workflow: ONNX is now installed only on the first run of a program that uses it, rather than with the platform.

We have also refined the rendering of text and analytical objects on charts for the Blend2D engine introduced in the previous update. In addition, this update provides enhancements to trading reports and stability improvements to the Strategy Tester.

The web version of the platform has received several improvements as well. When adjusting stop levels directly on a chart, you can now see an approximate profit or loss value in monetary terms. We have also fixed the display of certain trading data.

MetaTrader 5 Platform Beta Build 5540: General Improvements

We invite all traders to join the testing of the new platform version, evaluate all its features and help developers fix the errors. To update to the new MetaTrader 5 beta build, navigate to Help \ Check Desktop Updates \ Latest Beta Version:

Update to beta and join testing

Once this beta testing phase concludes, the final build of MetaTrader 5 will be released.


MetaTrader 5 Client Terminal

  1. Terminal: Fixed text rendering on charts in macOS and Linux environments using Wine.
  2. Terminal: Corrected the drawing of indicators displayed as lines with variable colors.
  3. Terminal: Fixed rendering of Text Label and Button objects.
  4. Terminal: Corrected formatting of certain statistics in trading reports, which could previously round incorrectly.
  5. Terminal: Revised calculation of "Total Profit" and "Total Loss" in trading reports. These values now include commissions and swaps.
  6. MQL5: ONNX library now loads on the first run of an MQL5 program that uses ONNX, rather than with the platform. Library updates occur automatically.
  7. MQL5: Added CUDA support for ONNX. If your graphics card supports this technology, model inference performance will be significantly improved. We strongly recommend updating NVIDIA drivers to enhance stability and performance.
  8. MQL5: Updated flags in the ENUM_ONNX_FLAGS enumeration. These flags are used when creating and executing ONNX models:

    Logging
    Instead of the deprecated ONNX_DEBUG_LOGS, the following logging flags are now used:

    • ONNX_LOGLEVEL_VERBOSE — log all messages.
    • ONNX_LOGLEVEL_INFO — log informational messages, warnings, and errors. Replaces the deprecated ONNX_DEBUG_LOGS.
    • ONNX_LOGLEVEL_WARNING — log warnings and errors. Used by default.
    • ONNX_LOGLEVEL_ERROR — log errors only.

    CUDA and GPU Management
    The ONNX_CUDA_DISABLE flag has been removed. Use the new ONNX_USE_CPU_ONLY flag instead. When enabled, only the CPU will be used for model execution.

    Flags have been added to select the GPU device on which the model will be executed:

    • ONNX_GPU_DEVICE_0
    • ONNX_GPU_DEVICE_1
    • ONNX_GPU_DEVICE_2
    • ONNX_GPU_DEVICE_3
    • ONNX_GPU_DEVICE_4
    • ONNX_GPU_DEVICE_5
    • ONNX_GPU_DEVICE_6
    • ONNX_GPU_DEVICE_7

    Use these flags if the system has two or more CUDA-capable devices. If multiple flags are specified, the device with the lowest index will be selected.

    Model Profiling
    We've added the ONNX_ENABLE_PROFILING flag to enable ONNX model profiling.

    When a model is started with this flag enabled, a profiling report file with the name: [EX5 file name]_[date]_[time].json will be created in the /MQL5/Files/OnnxProfileReports/ folder.

  9. MQL5: Improved stability for OpenCL operations.
  10. MQL5: Added ReplaceToZero method. It replaces small values in a matrix/vector with zero values and returns the number of replaced elements.
  11. MQL5: Added new OpenBLAS methods:

    • FactorizationLDLComplexSyRaw — computes the factorization of a complex matrix using the Bunch-Kaufman diagonal pivoting method.
    • LDLComplexSyLinearEquationsSolution — solves a system of linear equations A * X = B with a complex symmetric indefinite matrix using the factorization A = U**T * D * U or A = L * D * L**T computed by FactorizationLDLComplexSyRaw, with multiple right-hand sides.
    • LDLComplexSyInverse — computes the inverse of a complex symmetric indefinite matrix using the factorization A = U**T * D * U or A = L * D * L**T computed by FactorizationLDLComplexSyRaw.
    • LDLComplexSyCondNumReciprocal — estimates the reciprocal of the condition number of a real symmetric or complex Hermitian indefinite matrix A, using the LDLT factorization computed by FactorizationLDLRaw.

  12. MQL5: Fixed programmatic text setting for OBJ_LABEL, OBJ_TEXT, OBJ_BUTTON, and OBJ_EDIT objects. The text might not be displayed under certain conditions.
  13. MetaEditor: Fixed out-of-memory errors when working with large source files (megabytes).
  14. Tester: Fixed termination of testing for looping Experts Advisors. Even with infinite loops, pressing "Stop" now halts execution immediately.
  15. Tester: Fixed EventChartCustom call during visual testing. Previously, the event could be mistakenly sent twice.
  16. Tester: Corrected freeze level check (SYMBOL_TRADE_FREEZE_LEVEL) when deleting newly placed pending orders.
  17. Updated user interface translations.

MetaTrader 5 Web Terminal

  1. Added display of approximate profit/loss in money when setting Stop Loss or Take Profit on the chart.


    Added display of approximate profit/loss in money


  2. Fixed display of symbol specifications for instruments with special characters.
  3. Corrected display of negative prices in trade dialogs.
  4. Fixed display of account financial metrics for cases where the deposit currency has precision greater than two decimal places.


The update will be available via Live Update.

 
Great to see MT5 evolve into a better version 
 
great, can't wait for the beta version to be release
 
Yes it is awesome to be launch.