MetaTrader 5 Platform Update Build 5320: Services in CodeBase and improved input operations in MQL5

 

On Friday, September 26, 2025, an updated version of the MetaTrader 5 platform will be released.

Build 5320 is the last update to support Windows 7, Windows 8, Windows 8.1, and Windows Server 2008. Starting with the next version, desktop platforms running on these operating systems will no longer receive updates. The only exception is platforms running under Wine.

In this update, we have added a separate CodeBase category for services. Now you can easily share such MQL5 applications, as well as download them directly from the platform with automatic installation to the desired folder.

We have also improved operations with input variables in MQL5. Now, using a separate parameter, you can specify a variable name to be displayed in the program properties in the platform. Previously, the name was specified through comments, which was a less obvious method.

MetaTrader 5 Platform Update Build 5320: Services in CodeBase and improved input operations in MQL5

In addition, we have made several improvements to the MQL5 compiler and debugger, and added translations of the Web Terminal into Romanian and Hebrew.


MetaTrader 5 Client Terminal

  1. Terminal: Added support for MQL5 Service programs in the CodeBase.

    Unlike Expert Advisors, indicators and scripts, services are not attached to a specific chart. They run in the background and start automatically when the terminal launches. With services, you can implement custom price data feeds for the platform, as well as perform a wide range of auxiliary tasks.

    These programs now have a dedicated category. Developers can share their codes in the CodeBase:


    Share your code in the library


    Users can easily download them directly from the platform or MetaEditor. Once downloaded, the program is placed in the correct folder, compiled automatically, and ready to run:


    Download codes directly from the platform


  2. Terminal: Fixed an issue where files from closed (removed) charts were moved to the wrong directory. Because of this, users could not restore such charts via the 'File \ Open Deleted' menu.
  3. MQL5: Added support for new syntax for input parameters. You can now explicitly set a visible name to be displayed in the program properties. Previously, this was only possible through comments.

    Instead of the outdated syntax:
    input int InpVar;  /*visible name*/ // some comment
    Use the new format:
    input(name="visible name") int InpVar;  // some comment
    The visible variable name is defined in the 'name' parameter, which accepts string literals only.

    When the new input syntax is used, all comments following the variable declaration are ignored. The older syntax remains supported and is not deprecated. You may continue using it, and the compiler will not generate warnings.

  4. MQL5: Fixed an error where the compiler could incorrectly produce the message "function must have a body".
  5. MetaEditor: Fixed tooltips displayed when hovering over the value of a watched expression in the debugger.
  6. Tester: Fixed an error when testing indicators. The process could fail to start if the indicator name matched a chart template name.
  7. Updated user interface translations.

MetaTrader 5 Web Terminal

  1. Added Romanian and Hebrew translations for the user interface; improved translations in the account connection window.
  2. Fixed the display of the objects menu in the mobile version.
  3. Fixed the display of minimum volume and volume step in contract specifications.


The update will be available through the Live Update system.

 
Please fix the "Scale fix" function in MT5 to make it smooth and seamless like it is in MT4.
If it can be exactly like MT4, that's fine too.
Or, if possible, let me freely and comfortably stretch and compress the vertical scale.
Honestly, this is the main reason why I don't feel like interacting with the MT5 chart at all when doing technical analysis.

Thanks very

Video is MT4 and MT5

.

 
Luu Tuan Trung #:
Please fix the "Scale fix" function in MT5 to make it smooth and seamless like it is in MT4.

When you select "Fixed Scale", if you input a value that is significantly larger or smaller than the proposed maximum and minimum values, you can drag the chart up/down and stretch/compress it.

 
dcstoyanov #:

When you select "Fixed Scale", if you input a value that is significantly larger or smaller than the proposed maximum and minimum values, you can drag the chart up/down and stretch/compress it.

MT5 auto reset to default
 

Observing a strange behaviour, the API is not obeying to the values passed in when creating an object of type TREND_BY_ANGLE:



Here is the result of this object creation:


Should this be considered a bug? - The _Point value is 0.01.Symbol specifcations say Tick-Size: 0.00

I cannot make up any relation. 

 
Dominik Egert #:
TREND_BY_ANGLE
AFAIK, the angle is about a ratio between 2 sides (price and time) drawn in pixels. The second point is recalculated from the first point using current chart scale.
 
Stanislav Korotky #:
AFAIK, the angle is about a ratio between 2 sides (price and time) drawn in pixels. The second point is recalculated from the first point using current chart scale.

I suspected something like that, though, wouldnt it be, with all values == NULL, not be still NULL?

After all: sin(0) == 0; cosin(0) == 1

 
Dominik Egert #:

I suspected something like that, though, wouldnt it be, with all values == NULL, not be still NULL?

After all: sin(0) == 0; cosin(0) == 1

I suppose, when you do not specify actual paramaters (which is not a practical use-case anyway), the terminal selects some pseudo values which formally correspond to default angle. For example, to denote a vertical upside ray as a trend, it's suffice to set 0-th price to 0 (since you did not provide actual point) and the 1-th to some negative value (both times are the same). For me it gives prices [0.0, -0.00001] and 90° angle by default on EURUSD chart.

You did not provide a test source code, so I checked manually and with codes from the algotrading book.

 
Please fix the "Scale fix" function in MT5. It auto restore location, hide on chart

Thanks very