MetaTrader 5 latest build offers background chart loading and code profiler improvements
MetaQuotes Software, the developer of the Metatrader trading platforms, announces the release of MetaTrader 5 build 2650.
The terminal offers a new data downloading option. In order to save traffic, the platform downloads symbol price history only when the relevant data is requested. However, waiting for data to download may not be convenient for actively used symbols.
Enable the new option “Preload chart data for open positions and orders”, and the charts of the symbols for which you have open positions or pending orders, will be updated in the background mode. The relevant data will be immediately available for analysis whenever you open the symbol chart.
Furthermore, thanks to the updated Profiler, trading robot developers can accurately determine the execution time of each MQL program section. Performance data can assist in creating efficient and fast-running solutions. In contrast to the previously used Profiler which significantly modified the program, the new version uses an unchanged executable code for profiling.
The Profiler now uses the Sampling method: MQL program execution is interrupted every millisecond to analyze which function part is being executed at that moment. The analysis reflects the share of each function in the total code execution time.
Performance metrics (in units and percentage):
- Total CPU — how often the function was used.
- Self CPU — how much processor time was utilized for the specific function execution. This variable is crucial in identifying MQL program bottlenecks.
Another update concerns the function inlining during profiling. Inlining (adding a function code directly to its call site) enables program performance acceleration, but it makes function profiling difficult. Now, traders can disable the inlining feature if you need a report on “pure” functions.
Finally, an update to the Tester provides revised options for working with custom settings. For instance, when the “Use custom settings” option is disabled, all other settings in the dialog are deactivated to avoid misleading interpretation.
Fixed calculation of custom commissions: now, commissions can be enabled by specifying the symbol name instead of the entire path. Also, the update features some minor bug fixes and interface improvements, including rearranged tabs and optimized table column width.
MT5 has been regularly updated. About a month ago, MT5 Build 2615 was released. It has added expanded fundamental analysis, and complex criteria in the Strategy TesterTerminal.