What's new in MetaTrader 5

The history of updates of the desktop, mobile and web platforms

25 May 2011
MetaTrader 5 Trading Terminal build 458
  1. Trading Terminal: Added the possibility to scale the price chart using the mouse in the fixed scale mode.
  2. Trading Terminal: Fixed the display of volumes in the "Exposure" tab.
  3. Trading Terminal: Fixed scanning of Cloud servers.
  4. MQL5: Added generation of the CHARTEVENT_CHART_CHANGE event when scrolling the price chart.
  5. MQL5: Fixed compilation errors related to the false recognition of constructors.
  6. MQL5: Fixed operations of comparison of single-byte types with constants.
  7. MQL5: Fixed classes of signal generators in the MQL5 Wizard.
  8. MetaTester: Optimized interaction between the terminal and testing agents. Communication protocol is optimized for the Cloud servers.
  9. MetaEditor: Fixed highlighting of the arguments of built-in overloaded MQL5 functions.
  10. Fixed errors reported on the forum and in crash logs.
  11. Updated documentation.

The live update is available through the LiveUpdate system.

The MetaTrader 5 Trading Terminal can be downloaded at https://download.mql5.com/cdn/web/metaquotes.software.corp/mt5/mt5setup.exe?utm_source=www.metatrader5.com

16 May 2011
MetaTrader 5 Client Terminal build 450
  1. Terminal: Fixed crash of the client terminal under Windows XP.
  2. MQL5: Fixed the default call of the constructor of objects.
  3. MQL5: Fixed export of functions without parameters.
  4. MQL5: Fixed incorrect compiler warnings.
  5. MQL5: Added explanation of parametric constructor.
  6. Fixed errors reported on the forum and in crash logs.

The live update is available through the LiveUpdate system.

The MetaTrader 5 Client Terminal can be downloaded at https://download.mql5.com/cdn/web/metaquotes.software.corp/mt5/mt5setup.exe?utm_source=www.metatrader5.com

13 May 2011
MetaTrader 5 Client Terminal build 448
  1. Terminal: Added the MQL5.Codebase tab - downloaded MQL5 programs are automatically compiled, placed in the Downloads directory (separate one for Expert Advisors, scripts and indicators) and applied to the chart:

    Codebase MetaTrader 5 Client Terminal

  2. MQL5: Added support for parametric constructors.
  3. MQL5: Fixed handling of string parameters of a custom indicator.
  4. MQL5: Fixed message "'switch' - out of memory", which appears during compilation of MQL5 programs.
  5. MQL5: Fixed an error in compilation of recursive functions.
  6. MQL5: Standard Library - added options for controlling the use of market patterns (Include\Expert\Signal\*.mqh).
  7. MQL5: Added illustrations in the descriptions of the modules of trading signals.
  8. MetaTester: Fixed repeated processing of stops.
  9. MetaEditor: Added highlighting of constructor parameters.
  10. MetaEditor: Added support for automatic placement of the source text after opening in a web browser for Chrome and Opera.
  11. Fixed errors reported on the forum and in crash logs.
  12. Updated documentation.

The live update is available through the LiveUpdate system.

The MetaTrader 5 Client Terminal can be downloaded at https://download.mql5.com/cdn/web/metaquotes.software.corp/mt5/mt5setup.exe?utm_source=www.metatrader5.com

5 May 2011
MetaTrader 5 iPhone build 439
  • Improved network stability;
  • Added server icons;
  • Fixed errors.
3 May 2011
MetaTrader 5 Client Terminal build 441
  1. Terminal: Fixed the display of graphical objects with a zero date in the anchor point.
  2. Terminal: Fixed refreshing of the list of open windows during mass closure.
  3. MQL5: The Standard Library - fixed a function for checking the maximum lot CAccountInfo::MaxLotCheck.
  4. MetaTester: Fixed repeated processing of stops.
  5. MetaTester: Added export of optimization results in OpenXML.
  6. MetaTester: Added saving of a report of optimization results for the optimization started from the command line.
  7. MetaTester: Fixed the display of the indicator of the history quality; added tooltips.
  8. Fixed errors reported on the forum and in crash logs.
  9. Updated documentation.
27 April 2011
MetaTrader 5 Client Terminal build 439
  1. Terminal: Fixed handling of the splitter of chart subwindows.
  2. Terminal: Added the "MQL5 Market" tab.

    Market in MetaTrader 5

  3. Terminal: Fixed drawing of graphical objects when rebuilding historical caches.
  4. Terminal: Fixed drawing of the "Horizontal line" object.
  5. Terminal: Fixed restoring of graphical objects from profiles.
  6. Terminal: Fixed editing of prices in the position modification dialog.
  7. Terminal: Fixed the display of zero profits for the "out" and "in-out" trades.
  8. Terminal: Fixed an error with displaying the help.
  9. MQL5: Released a new version of MQL5 Wizard. The new version allows using of up to 64 signals simultaneously, setting to each of them individual parameters and weight.

    New Wizard in MetaTrader 5

  10. MQL5: Added chart properties CHART_EVENT_OBJECT_CREATE and CHART_EVENT_OBJECT_DELETE to control the generation of the corresponding events.
  11. MQL5: Added an option of disabling the tooltip of a graphical object by writing '\n' in the appropriate field.
  12. MQL5: Fixed generation of the CHARTEVENT_CHART_CHANGE event when calling ChartRedraw().
  13. MQL5: Fixed getting of the color properties for charts, objects and indicators.
  14. MQL5: Fixed the sizeof function for links.
  15. MetaTester: Added an indicator of the quality of the testing history.

    Quality of the testing history

  16. MetaTester: Fixed registration of busy agents during genetic optimization.
  17. MetaTester: Fixed the display of the tester's status bar in the minimized form.
  18. MetaTester: Fixed generation of reports on test results.
  19. MetaTester: Fixed crash when returning the results of forward testing.
  20. MetaTester: Fixed the display of optimization results for all symbols.
  21. MetaTester: Now the file cache is always built for optimization started from the command line.
  22. MetaEditor: Fixed hangup during auto substitution.
  23. Fixed errors reported on the forum and in crash logs.
  24. Updated documentation.
15 April 2011
MetaTrader 5 Client Terminal build 430
  1. Terminal: Added force removal of the terminal journal, Expert Advisors and testing logs in case free disk space is not enough.
  2. Terminal: Removed inheritance of a comment of the main chart when adding the "Chart" graphical object.
  3. Terminal: Fixed drawing of indicators using styles DRAW_BARS and DRAW_CANDLES.
  4. Terminal: Fixed requesting of the price history from a server.
  5. MQL5: Added a new property of graphical objects OBJPROP_TOOLTIP for adding a tooltip text.
  6. MQL5: Added the possibility to read chart parameters CHART_SHOW_PRICE_SCALE and CHART_SHOW_DATE_SCALE.
  7. MQL5: Added the possibility to set up the height of the window of a custom indicator through the INDICATOR_HEIGHT property of the IndicatorSetInteger function or using #property indicator_height.
  8. MQL5: Added the possibility to set up the height of a chart sub-window using the CHART_HEIGHT_IN_PIXELS property.
  9. MQL5: Added sending of the CHARTEVENT_CHART_CHANGE event when changing the scale, shift or enabling/disabling the Autoscroll option.
  10. MQL5: Added the TesterStatistics function for getting the data of the calculated statistics after testing. The function can be called inside OnTester and OnDeinit.
  11. MQL5: Changed the behavior of Expert Advisors in the event of account change: instead of reinitialization, Expert Advisors are now reloaded.
  12. MQL5: Changed the type of a return value of the EventChartCustom function.
  13. MQL5: Fixed type casting in the x^$ version.
  14. MQL5: Fixed casting of a string to a floating-point number.
  15. MQL5: Fixed terminal crash in the x64 version, which could appear after stack overflow in an MQL5 program.
  16. MQL5: Fixed the type of a return value of the FileWriteArray function.
  17. MQL5: Fixed setting of a chart shift using the ChartSetDouble property.
  18. MQL5: Fixed handling of chart closing from an MQL5 program.
  19. MQL5: Fixed values of __LINE__ and __FUNCTION__  substitutions inside macros.
  20. MQL5: Updated the standard MQL5 library: Tooltip methods added in the CChartObject class.
  21. MetaTester: Optimized distribution of tasks to testing agents during optimization.
  22. MetaTester: Optimized use of the file cache of the optimization results - the results calculated for less than the minimum time are not written to cache, because it is cheaper to recalculate them that reading from the cache.
  23. MetaTester: Added testing in the math calculations mode when starting testing from the command line (this requires setting the "3" value to the Optimization parameter in configuration.ini).
  24. MetaTester: Added testing in the forward testing mode when starting testing from the command line (this requires setting the "4" value to the Optimization parameter in configuration.ini). Added settings of forward testing in configuration.ini - ForwardMode and ForwardDate.
  25. MetaTester: For mathematical calculations, information in the window of optimization results is shown with maximum accuracy.
  26. MetaTester: Increased the threshold for displaying results of genetic optimization on the graph of results.
  27. MetaTester: For the x64 version, increased the threshold at which slow optimization is replaced by the genetic one (from 10,000,000 to 1,000,000,000).
  28. MetaTester: Optimized drawing of optimization graphs for a large amount of results.
  29. MetaTester: Optimized work with memory for storing a large amount of optimization results.
  30. MetaTester: Added the options allowing to handle custom events for MQL5 programs in the tester.
  31. MetaTester: Reduced the number of log messages during optimization, which helps to increase the operation speed.
  32. MetaTester: Fixed work with clipboard in the tab of input parameters.
  33. MetaTester: Fixed memory allocation for storing the history of orders and deals in case their number exceeds 8192.
  34. MetaTester: Fixed receiving of data of the symbol-period other than that selected for testing, on the first testing tick.
  35. MetaEditor: Fixed auto opening of a tab of search results after the search is over.
  36. MetaEditor: Removed highlighting of arguments in the function prototype.
  37. MetaEditor: Fixed autocomplete of functions and variables inside square brackets.
  38. Fixed errors reported on the forum and in crash logs.
3 April 2011
MetaTrader 5 iPhone build 421
  1. Added work with charts;
  2. Added offline mode (prices, charts, current positions, all trading history);
  3. Fixed errors reported on the forum and in crash logs.

The MetaTrader 5 for iPhone can be downloaded at https://download.mql5.com/cdn/mobile/mt5/ios?hl=en&utm_source=www.metatrader5.com

3 April 2011
MetaTrader 5 iPhone build 421
  • Added charts with navigation and scaling functions;
  • Графики в MetaTrader 5 iPhone
  • Added offline mode;
  • Fixed errors.
30 March 2011
MetaTrader 5 Client Terminal build 425
  1. Terminal: Fixed the sorting of deals in the trade history of the terminal and tester.
  2. Terminal: Removed default saving of default properties of the "Bitmap" and "Bitmap Label" objects.
  3. Terminal: Fixed terminal loading for operating systems without DirectX 9 (used for displaying a three-dimensional graph of optimization results).
  4. MQL5: Updated the standard library - in classes CIndicatorBuffer, CDoubleBuffer and CSpreadBuffer the default buffer size is increased from 16 to 256.
  5. MetaTester: Added an item of the context menu - "Auto Open Chart".
  6. MetaTester: The "Auto Open Chart" parameter is enabled by default.
  7. MetaTester: Fixed the file cache of the optimizer.
  8. MetaTester: Added removal of log files of a testing agent before optimization start.
  9. MetaTester: Optimized distribution of tasks among testing agents. Batch jobs are assigned to "fast" agents, while "slow" agents get single jobs.
  10. MetaEditor: Fixed the default substitution of the function value ​​in MetaAssist.
  11. Fixed errors reported on the forum and in crash logs.
25 March 2011
MetaTrader 5 Client Terminal build 421
  1. Terminal: Fixed an error that appeared when opening defective history files.
  2. MQL5: Fixed copying of structure.
  3. MQL5: Added new properties of graphical objects "Bitmap" and "Bitmap Label" - OBJPROP_XOFFSET and OBJPROP_YOFFSET for shifting the upper-left corner of a drawn fragment in the original bitmap. These properties are used in combination with OBJPROP_XSIZE and OBJPROP_YSIZE.
  4. MetaTester: Now when uninstalling a service, the working directory of the service agent is also removed.
  5. MetaTester: Added parameter "name *.set of EA parameters file" when starting testing from the command line.
  6. MetaTester: Optimized transmission of tasks to an agent during optimization.
  7. MetaTester: Now when installing the client terminal, rules for testing agents are automatically added in the Windows Firewall.
  8. MetaTester: Fixed the release of indicators during testing.
  9. MetaTester: Optimized use and release of memory by testing agents.
  10. MetaTester: Disabled proxy support for the connection of testing agents.
  11. MetaEditor: Fixed work of MetaStyler with the contents of strings.
  12. MetaEditor: Fixed excessive memory usage when opening large source files (several megabytes or more).
  13. Fixed errors reported on the forum and in crash logs.
21 March 2011
MetaTrader 5 Client Terminal build 420
  1. Terminal: Fixed changing of properties of the "Chart" graphical object. Added a property of graphical objects - OBJPROP_FILL (function ObjectGetInteger).
  2. Terminal: Separated the properties of contour-fill and showing on the fore-background of graphical objects.
  3. Terminal: Fixed saving and applying of a value ​​of the allowed default price deviation.
  4. Terminal: Fixed display of a tooltip of the "Text Label" object.
  5. Terminal: In the graphical object "Vertical Line" added a new property "Ray" - with this option enabled, the vertical line is applied to all chart windows. Added a property of graphical objects OBJPROP_RAY (function ObjectGetInteger).
  6. MQL5: Fixed generation of the event of "Bitmap" object removal.
  7. MQL5: Added a built-in macro __PATH__ - an absolute path to a file.
  8. MQL5: Updated the Standard Library: in the CChart class, added methods to manageme the display of scales ShowDateScale and ShowPriceScale.
  9. MetaTester: Added a new mode of testing "Math calculations".
    The mode of mathematical calculations assumes a blank run of the tester, with call of functions OnInit, OnTester, OnDeinit. With an empty run, an agent does not synchronize the historical data. The mode of mathematical calculations implies an automatic use of a custom optimization criterion (Custom max, result of the OnTester function) to determine the best possible results. Previously, for such a mode, it was necessary to specify the testing start date larger or equal to the testing end date, and to manually select Custom max for the optimization criterion.

    Strategy Tester with MetaTrader 5 Client Terminal

  10. MetaTester: Added a new mode of 3D visualization of testing results.

    3D visualization with Strategy Tester

  11. MetaTester: Added a file cache for the forward testing.
  12. MetaTester: Added auto-save of settings in the manager of agents.
  13. MetaTester: Fixed reading of settings by the agent services.
  14. MetaTester: Fixed the distribution of tasks between agents during optimization.
  15. Fixed errors reported on the forum and in crash logs.
14 March 2011
MetaTrader 5 Client Terminal build 412
  1. Terminal: Fixed opening of a demo account.
  2. Terminal: Fixed a dialog of the list of Expert Advisors - added selection of the current chart.
  3. Terminal: Fixed terminal crash when scanning the network of agents and when stopping the testing process.
  4. MQL5: Fixed access to the properties of the "Chart" object.
  5. MQL5: Added chart properties for disabling the display of the price scale and the time scale: CHART_SHOW_DATE_SCALE and CHART_SHOW_PRICE_SCALE.
  6. MetaTester: In the testing dialog, added a tab for registration in the MQL5 Cloud Network.
  7. Fixed errors reported on the forum and in crash logs.
10 March 2011
MetaTrader 5 Client Terminal build 411
  1. Terminal: Fixed a bug in changing the properties of the "Chart" graphical object.
  2. MQL5: Added support for parametric macros - you can now declare the macros of the following form:
    #define MUL(a, b) ((a)*(b))
  3. MQL5: Added an object property OBJPROP_CHART_ID - the identifier of a chart that corresponds to the graphical object "Chart" (OBJ_CHART). This gives the possibility to manage the properties of a chart embedded in a graphical object from MQL5 programs.
  4. MQL5: In the OnDeinit function, added a new code of deinitialization reason - REASON_CLOSE - meaning the terminal has closed.
  5. MQL5: Added check for the availability of a symbol in Market Watch when creating an indicator from an MQL5 program.
  6. MQL5: Fixed notifications of errors when downloading MQL5 programs.
  7. MQL5: Fixed stop of scripts and Expert Advisors when closing the terminal.
  8. MQL5: Fixed the implementation of the MessageBox function.
  9. MetaTester: Fixed update of remote agents.
  10. MetaEditor: Fixed search and replace in a selected text.
  11. MetaEditor: Fixed MetaStyler for comment blocks.
  12. MetaEditor: Added an option for exiting the snippet processing by pressing ESC.
  13. Fixed errors reported on the forum and in crash logs.
3 March 2011
MetaTrader 5 Client Terminal build 408
  1. Terminal: Message about deletion of an account in a client terminal is written into the journal.
  2. Terminal: Fixed formation of the depth of market during its first startup.
  3. MQL5: Added the CHARTEVENT_CHART_CHANGE even of chart characteristics changes: size, color, template, etc.
  4. MQL5: Fixed omission of an error message when the sign ";" is missed.
  5. MQL5: Fixed a warning on the comparison of bool types with other data types.
  6. MQL5: Prefix clr* added to color constants: the GreenYellow color now will be called clrGreenYellow. The old color names will be supported for the next few builds.
  7. MQL5: Fixed color to string and string to color typecasting.
  8. MQL5: Fixed chart property change CHART_BRING_TO_TOP.
  9. MQL5: Fixed behavior of MQL5 programs if custom indicator loading fails.
  10. MQL5: Updated the Standard Library. Fixed the Resize method of classes of dynamic arrays CArray *.
  11. MetaTester: Fixed update of remote agents.
  12. MetaTester: Fixed setting of a symbol and a period of testing for an Expert Advisor during the repeated run.
  13. MetaTester: The process of a remote testing agent is set a lower priority for a more flexible scheduling of computer resources.
  14. MetaTester: Fixed freeing up of memory with historical data in case there are no new connections.
  15. MetaEditor: Optimized work of MetaAssist.
  16. MetaEditor: Fixed processing of the do ... while snippet.
  17. MetaEditor: Added option "Only selected" in the dialog of text replacement.
  18. Fixed errors reported on the forum and in crash logs.
24 February 2011
MetaTrader 5 Client Terminal build 404
  1. Terminal: Fixed enabling/disabling of a signal in the dialog of signal setting.
  2. MQL5: Fixed slowdown in the absence of incoming values for custom indicators.
  3. MQL5: Added forced redrawing of a chart when navigating from scripts and Expert Advisors.
  4. MQL5: Updated the Standard Library - fixed an error in the CString::Reverse method.
  5. MetaTester: Fixed the generation of optimization cache.
  6. MetaTester: Fixed am error in the file cache of the testing agent.
  7. MetaTester: Fixed transmission of an Expert Advisor to a testing agent in case the Expert Advisor has changed.
  8. MetaEditor: Fixed memory leaks when working with snippets.
  9. MetaEditor: Fixed saving of files that are open in the browser in the MQL5 directory.
  10. MetaEditor: Optimized editing and compilation of large mq5 files.
  11. Fixed errors reported on the forum and in crash logs.
20 February 2011
MetaTrader 5 Client Terminal build 401
  1. Terminal: Fixed the start of the client terminal using the custom configuration file.
  2. Terminal: Fixed saving of negative angles for the label objects.
  3. Terminal: Added re-calculation of the width of chart scales after changing its properties.
  4. MQL5: Fixed the ChartApplyTemplate function.
  5. MQL5: Fixed reading of large strings from a file.
  6. MQL5: Fixed call of the OnDeinit method for custom indicators used simultaneously by several Expert Advisors or charts.
  7. MQL5: Changed the value of the OBJ_ALL_PERIODS flag (0x001fffff (2 097 51) instead of 0xffffffff (4 294 967 295))
  8. MQL5: Updated the Standard Library.
  9. MetaTester: The "Clear" command of the context menu of the tester journal removes all log files of the tester and local agents.
  10. MetaTester: Fixed the initialization of the history cache when shifting the testing start date.
  11. MetaTester: In the context menu of the tester journal, added command "Full Optimization Logs" - showing the logs on the completion of intermediate stages of optimization.
  12. MetaEditor: Added support for snippets - the automatic insertion of code snippets initialized by typing a key word. For example, in order to insert the class declaration, type class - after that the cursor shape will change, thus indicating that the word is the key word for a snippet:

  13. Then, when you press Tab, the key word is replaced by the class declaration. Change of the class name will automatically change the names of the constructor and destructor.

    The transition between active fields of the snippet (in our case between the class name, the name of the constructor and destructor name) is performed by pressing Tab (move forward) and Shift+Tab (move back). Currently the following snippets are supported:

    Keyword
    Value
    start
    Entry point OnStart
    initv Entry point void OnInit
    initi
    Entry point int OnInit
    deinitEntry point OnDeinit
    tickEntry point OnTick
    time
    Entry point OnTime
    trade
    Entry point OnTrade
    book
    Entry point OnBook
    chart
    Entry point OnChart
    test
    Entry point OnTester
    calc
    Entry point OnCalculate
    calcp
    Entry point OnCalculate
    struct
    Structure declaration
    for
    Declaration of the for loop
    while
    Declaration of the while loop
    do
    Declaration of the do while loop
    if
    Declaration of the if condition
    ife
    Declaration of the if-else condition
    enum
    Declaration of enumeration
    class
    Class declaration
    classbDeclaring a class with inheritance
    switch
    The switch selector
    case
    The case selector
    #imp
    Import declaration

  14. MetaEditor: Added search on MQL5.com by pressing Ctrl+F1.
  15. MetaEditor: Fixed search on MQL5.com in English.
  16. Fixed errors reported on the forum and in crash logs.
4 February 2011
MetaTrader 5 Client Terminal build 392
  1. MetaTester: Fixed setting optimization parameters.
  2. MetaTester: Fixed mass adding and deleting of agents.
  3. MetaTester: Added showing of single-test results immediately after they are obtained.
  4. Fixed errors reported on the forum and in crash logs.
3 February 2011
MetaTrader 5 Client Terminal build 391
  1. Terminal: Significantly increased speed of loading of the charts with a large number of graphical objects (hundreds of thousands).
  2. MQL5: Fixed commands for navigating through a chart from an Expert Advisor.
  3. MQL5: Fixed casting of numbers with a floating point to a string.
  4. MQL5: Fixed copying of structures.
  5. MQL5: Fixed an error in setting of parameters of running Expert Advisors.
  6. MQL5: Fixed errors in the StringReplace function.
  7. MQL5: Updated the Standard Library.
  8. MetaTester: Fix the generation of optimization cache.
  9. MetaTester: Optimized transmission and display of trade results of testing.
  10. MetaEditor: Added generation of classes in the MQL5 Wizard.
  11. MetaEditor: Fixed creation of an *.mqh file for an *.mq5 file for long function names.
  12. Fixed errors reported on the forum and in crash logs.
31 January 2011
MetaTrader 5 Client Terminal build 387
  1. Terminal: Added support for pasting from the clipboard into a list of trade servers in the dialog of new account opening.
  2. Terminal: Fixed saving and display of selected categories of news.
  3. Terminal: Added filtering of rows to be pasted from the clipboard in the fields of new account opening dialog.
  4. Terminal: Fixed calculation of total profits in the OpenXML statement of the trade history.
  5. Terminal: In the terminal log, added messages about enabling/disabling of automated trading.
  6. MQL5: Fixed getting of the Expert Advisor parameters.
  7. MQL5: Fixed passing of call of functions from the ArrayGetAs* family in x64.
  8. MQL5: Fixed definition of accessibility of protected and private class members.
  9. MQL5: Optimized event handling by Expert Advisors.
  10. MQL5: Fixed definition of the paths to resources.
  11. MQL5: Fixed output of messages about deletion of an undeletable or invalid pointer.
  12. MetaTester: Fixed saving of testing settings when running a single test from the optimization results.
  13. MetaTester: Fixed memory reserving when displaying 2D optimization results on large data volumes.
  14. MetaTester: Optimized passing of test parameters.
  15. MetaTester: Optimized display of the trade history in the tester.
  16. MetaEditor: Fixed update of the tester through LiveUpdate.
  17. MetaEditor: Fixed timely display of debugging points.
  18. MetaEditor: Added a command for creating an *.mqh file at an *.mq5 file for preparing the header files of libraries.
  19. MetaEditor: Fixed transition between the description and definition of the method.
  20. MetaEditor: Fixed opening of a file from the command line.
  21. MetaEditor: Fixed search through MQL5.com when connecting through a proxy server.
  22. Fixed errors reported on the forum and in crash logs.
123456789101112131415