What's new in MetaTrader 5

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

14 June 2013
MetaTrader 5 Trading Terminal build 821: Updated Signals Window and Trading Signal Registration Command

Trading Terminal

  1. Added ability to set Stop Loss and Take Profit levels in market order placing dialog for symbols having Market and Exchange execution types. If the values of the levels are specified in points, the final value of placed Stop Loss and Take Profit prices is calculated based on the order's market price at the moment the request was placed in the client terminal.


    Added ability to set Stop Loss and Take Profit levels in market order placing dialog for symbols having Market and Exchange execution types

  2. Added display of trading levels' deviation from the market's, position's or order's price in points and client deposit currency when dragging trade levels of orders and stops.

    Added display of trading levels' deviation from the market's, position's or order's price in points and client deposit currency when dragging trade levels of orders and stops

  3. Added display of trading levels' deviation from the market's, position's or order's price in points and client deposit currency into trade levels' tooltips.

    Added display of trading levels' deviation from the market's, position's or order's price in points and client deposit currency into trade levels' tooltips

  4. Added "Enable dragging of trade levels with 'Alt' key" option - when enabled, dragging of trade levels is performed only in case Alt key is pressed.


  5. Added currency display in the client account's status bar.

    Added currency display in the client account's status bar

  6. Modified drawing Fibonacci Arc object - the arcs are drawn "to the past" only till the graphical object's midpoint level to facilitate visualization.
  7. Added MQL5 application publication date column at Code Base tab.
  8. Fixed display of the empty Depth of Market in Extended mode.
  9. Fixed errors in trade commands of the Depth of Market's context menu.
  10. Now, graphical objects created from MQL5 applications cannot be restored after deletion using Undo command (Ctrl+Z).
  11. Fixed highlighting the deals performed by SL\TP at the trading history tab.
  12. Fixed assignment of "hot keys" for MQL5 applications in the context menu of Navigator window.
  13. Fixed behavior of signals at Alerts tab - conditions related to prices are checked at the moment the price changes instead of periodical checks performed without considering prices.
  14. Fixed restoring SL\TP values in points in the trade requests placing dialog after the failure of a trade request.
  15. Fixed errors of results normalization in the terminal's and tester's trading reports.
  16. Fixed display of custom indicators with DRAW_COLOR_HISTOGRAM2 style.
  17. Fixed display of quick trade panel when changing the chart's color scheme.
  18. Fixed default generation of trailing stop level sets.
  19. Fixed occasional incorrect activation of alerts.

MetaTrader Trading Signals

  1. Revised display of signal list:

    • Added signal price column and paid/free signals filter.
    • Added signal type column - Demo, Contest or Real.
    • Removed brokerage company and trading server names.

    Revised display of signal list

  2. Added command for registering a trading signal bound to the allocated account on MQL5 web site to the trading account's context menu of the Navigator window.


    Added command for registering a trading signal bound to the allocated account on MQL5 web site to the trading account's context menu of the Navigator window

  3. Revised the dialog for unsubscribing from a signal in order to reduce the risk of the accidental unsubscribing from paid signals. Now, users should additionally agree to unsubscribing terms before performing the action.

MQL5

  1. Now, CHARTEVENT_CHART_CHANGE event is generated when the chart's vertical scale is changed.
  2. Fixed check of price and stop level validity when placing and modifying pending orders - now, TRADE_RETCODE_INVALID_PRICE response code is returned in case of the order's invalid price instead of TRADE_RETCODE_INVALID_STOPS.
  3. Fixed launch of Expert Advisors when the terminal is launched from the command line and Symbol parameter is absent in the parameters list - in this case, an Expert Advisor is launched at the first chart of the current profile.
  4. Fixed compilation of an application having a large number of resource files (more than 256).
  5. Standard Library. Added diagram generation mode - "with accumulation" - CChartCanvas::Accumulative() property.
  6. Standard Library. Added control of the allowed order and order expiration types before placing trading orders in CTrade class.

MQL5 Market

  1. Added the button for testing paid Expert Advisors and indicators directly from Market tab. Test button appears after downloading Expert Advisors' demo versions and indicators. When pressing the button, Strategy Tester tab with the appropriate Expert Advisor or indicator appears.


    Added the button for testing paid Expert Advisors and indicators directly from Market tab

Strategy Tester

  1. Fixed an error in caching trading history that could sometimes lead to receiving incorrect deal properties.
  2. In the visual testing mode, fixed indicator chart display in a separate subwindow in case this indicator has been generated based on another one.
  3. Added permission for placing SL and TP from MQL5 applications in Exchange and Market Execution modes during testing and optimization.
  4. Fixed an error during re-optimization in All symbols optimization mode.
  5. Fixed handling expiration of pending orders with Specified day mode.
  6. All properties (ChartGetDouble, ChartGetInteger functions) of the main chart are now displayed during the visual testing, except Window Handle value.
  7. Presence of OnTester access point is checked when launching optimization according to Custom max criterion. In case the point is absent, optimization is not launched and the appropriate entry appears in the journal.

MetaEditor

  1. Added ability to change window size in the debugger.


    Added ability to change window size in the debugger

  2. Added edit commands:

    • "Increase Line Indent (Tab)"\"Decrease Line Indent (Shift +Tab)" - add/remove indentation at the beginning of the highlighted lines.
    • "Make Uppercase (Ctrl+Shift+U)\Make Lowercase (Ctrl+U)" - convert all the characters of the highlighted text to uppercase/lowercase

    Added edit commands

  3. Added prohibition against adding files larger than 64 megabytes to MQL5.Storage.

Fixed errors reported in crash logs.
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

19 April 2013
MetaTrader 5 TradingTerminal build 803: Full Display in Depth of Market and Dragging Expert Advisors from Code Base

Trading Terminal

  1. Added ability for "full" display in the Depth of Market - each price tick is displayed as a separate line in the Depth of Market.

    Added ability for full display in the Depth of Market

  2. Fixed an error that sometimes occurred in trailing stop operation.
  3. SL-TP levels for the order are automatically shifted when moving the order in the Depth of Market using drag'n'drop.
  4. Fixed display of Templates in the chart's context menu.
  5. Improved Code Base tab - now, MQL5 application can be added to the chart by dragging it from Code Base tab. Added the column with the name of an Expert Advisor and removed the column with publication dates.

  6. Improved Code Base tab - now, MQL5 application can be added to the chart by dragging it from Code Base tab

  7. Restored Trading tab in Market Watch window.
  8. Fixed deletion of an account in Navigator window in case of large login values.
  9. Fixed reset of the current bar in price history when working with exchange tools.
  10. Added logging of deals with trailing stops.

  11. Trading Signals

  12. Fixed an error in handling position closing signals when renaming trading symbols (EURUSD <=> EURUSD!).

MQL5

  1. Fixed making chart screenshots using ChartScreenShot function from custom indicators at OnCalculate entry point.
  2. Added ability to present binary data using b prefix:

    int val=b'101010'; // 42
  3. Added the timer event setting function specifying frequency in milliseconds EventSetMillisecondTimer - when using this function, OnTimer entry point can be called at more than once per second.

    This feature is designed for the cases when high-resolution timer is required. In other words, timer events should be received more frequently than once per second.

    The minimum interval of 1000 milliseconds is used in the strategy tester. In general, when the timer period is reduced, the testing time is increased, as the handler of timer events is called more often. When working in real-time mode, timer events are generated no more than 1 time in 10-16 milliseconds due to hardware limitations.

  4. Standard Library. Updated CPieChart and CChartCanvas classes for creating diagrams.

Strategy Tester

  1. Fixed history synchronization error during repeated optimization passes that sometimes led to mismatches in optimization results.
  2. Fixed an error that in some cases could lead to "freezing" of forward testing after optimization.
  3. Changed calculation of "Balance + max Profit Factor" optimization criterion. In case there is no calculated profit factor (no loss-making deals), the final balance is now used as the optimization criterion.
  4. Fixed an error that in some cases could lead to "freezing" of forward testing after optimization. In some cases, forward optimization could suddenly stop after the "large" genetic optimization.

MetaEditor

  1. Added ability to format the output of integers in the debugger: in binary form - using "b" modifier, in hexadecimal form - using "x" modifier.

    Added ability to format the output of integers in the debugger

  2. Added ability to show the values for the fields of structures and classes:

    Added ability to show the values for the fields of structures and classes

Fixed errors reported in crash logs.
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

4 April 2013
MetaTrader 5 Client Terminal build 794: Scalper Depth of Market and New Tools for One-Click Trading

Trading Terminal

  1. Revised one-click trading system:

    • When One-Click Trading mode is enabled, the trading dialog is closed right after a successful operation. In case of an error, the dialog displays its cause.

      When One-Click Trading mode is enabled, the trading dialog is closed right after a successful operation. In case of an error, the dialog displays its cause

    • When One-Click Trading mode is enabled, Close Position command in the position's context menu results in an immediate closing of the position without showing the trading dialog. Added ability to remove SL-TP in one click in the list of open orders and positions.

      When One-Click Trading mode is enabled, Close Position command in the position's context menu results in an immediate closing of the position without showing the trading dialog

    • Added the context menu for trading levels on the chart. The menu allows managing the level right from the chart.

      Added the context menu for trading levels on the chart

    • When One-Click Trading mode is enabled, dragging trading levels of orders and positions results in an immediate modification of the appropriate order or stop level without showing the trading dialog.

    • A double click on the trading level displays order or position modification dialog.

    • Revised the context menu of trading from the chart, limit orders are now set in the main menu, added ability to set alerts right from the chart.

    • Revised the context menu of trading from the chart, limit orders are now set in the main menu

    • Removed Trading tab from Market Watch window. Now, any trade operations can be performed right on the chart.

  2. Replaced conventional Depth of Market with the scalper one focused on the minimum time for performing a trade operation. When One-Click Trading mode is enabled, all trade operations are executed immediately without showing a trading dialog:

    Replaced conventional Depth of Market with the scalper one focused on the minimum time for performing a trade operation

    • SL and TP levels are specified in points.
    • Close button closes the current position.
    • A limit order is placed by pressing the market entry button at the appropriate level.
    • A limit or stop order is removed by pressing the appropriate button while holding Shift key.
    • Order or stop price can be changed by simply dragging an order to a new level.
    • When dragging a pending order via the level of best prices, the order automatically changes its type from Limit to Stop and vice versa.
    • Market order is placed by pressing Buy or Sell buttons.

  3. Fixed an error when changing a vertical scale for symbols with a specified tick size on a chart.

  4. Added a tab displaying brokerage company's technical support web site.

    Added a tab displaying brokerage company's technical support web site

  5. Changed scaling algorithm in trading dialog's tick chart - now, the scale is chosen so that the levels of a trading order and stops are displayed on the chart.

  6. Fixed Navigator window's multiple update when compiling the directory in MetaEditor.

  7. Fixed an error leading to changing of the value in the order price field when switching between different modes of modification and setting a new order in the trading dialog.

  8. Trading Signals

  9. Added insufficient funds warning message when trying to subscribe to paid signals.

    Added insufficient funds warning message when trying to subscribe to paid signals

  10. MQL5 Market

  11. Added ability to download free applications from MQL5 Market without registering on MQL5.

  12. MQL5

    1. Added new return codes when performing trading operations:

      • TRADE_RETCODE_INVALID_ORDER - placed order has forbidden or incorrect type.
      • TRADE_RETCODE_POSITION_CLOSED - operation with the position is impossible, as the position is absent.

      Implemented changes to CTrade class of the Standard Library.

    2. Added new values to ENUM_BOOK_TYPE enumeration: BOOK_TYPE_SELL_MARKET and BOOK_TYPE_BUY_MARKET - requests to sell and buy at market price, respectively.
    3. SendFTP function operation now does not depend on the fact if publication of FTP reports in the terminal settings is allowed.
    4. Fixed an error when working with alpha channel for images from the resources that led to the loss of transparency.
    5. Fixed an error leading to the crashes of MQL5 applications when working in 64-bit Wine (for Linux, Mac).
    6. Fixed passing the cause of deinitialization in OnDeinit entry point parameter for custom indicators.
    7. Fixed debugging point's operation when exiting the function.
    8. Standard Library. Added drawing Ellipse, Arc and Pie graphical primitives and their versions with filling to CCanvas class.
    9. Standard Library. Fixed display of the calendar in Date Picker control element (MQL5\Include\Controls\DatePicker.mqh).
    10. Standard Library. Fixed display of a drop-down list in Date Picker and Combo Box control elements.
    11. Standard Library. Added diagram classes:

      • CPieChart (MQL5\Include\Canvas\Charts\PieChart.mqh) - pie chart.
      • CHistogramChart (MQL5\Include\Canvas\Charts\HistogramChart.mqh) - histogram.
      • CLineChart (MQL5\Include\Canvas\Charts\LineChart.mqh) - line chart.

      Examples of using the classes are added to MQL5\Scripts\Examples\Canvas\Charts.

    Strategy Tester

    1. Fixed crashes when working with charts in visual testing mode in case multicurrency Expert Advisors are tested.
    2. Fixed display of a basic chart during the visual testing of multicurrency Expert Advisors.
    3. Fixed the launch of visual testing when working in 64-bit Wine (for Linux, Mac).
    4. Fixed generation of ticks and trading exchange symbols.

    MetaEditor

    1. Fixed errors occurred when working with joint projects via MQL5 Storage.
    2. Fixed debugging and profiling of files from projects directory.

Fixed errors reported in crash logs.
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

21 March 2013
MetaTrader 5 Trading Terminal build 787: Added Ability to Receive Milliseconds in Trade Operations

Trading Terminal

  1. One click trading panel is not displayed for non-trading symbols and when an investor account is used.
  2. Fixed one click trading panel on a chart when working in Wine (for Linux, Mac).
  3. Fixed drawing indicators having DRAW_FILLING drawing style.

  4. Trading Signals

  5. Added detailed warning of different trading symbol settings at Signal Source and Subscriber's sides to the signal subscription dialog. This reduces the probability of subscribing to a signal, which is incompatible with Subscriber's trading account.

    Added detailed warning of different trading symbol settings at Signal Source and Subscriber's sides to the signal subscription dialog

MQL5

  1. Expanded ENUM_ORDER_STATE enumeration - states of trading orders. Added ORDER_STATE_REQUEST_ADD, ORDER_STATE_REQUEST_MODIFY and ORDER_STATE_REQUEST_CANCEL values.
  2. Added new position properties (ENUM_POSITION_PROPERTY_INTEGER enumeration):

    • POSITION_TIME_MSC - position placing time in milliseconds since 00:00:00 01.01.1970
    • POSITION_TIME_UPDATE - position changing time in seconds since 00:00:00 01.01.1970
    • POSITION_TIME_UPDATE_MSC - position changing time in milliseconds since 00:00:00 01.01.1970

    Added CPositionInfo::TimeMsc, CPositionInfo::TimeUpdate and CPositionInfo::TimeUpdateMsc properties to Standard Library.

  3. Added new order properties (ENUM_ORDER_PROPERTY_INTEGER enumeration):

    • ORDER_TIME_SETUP_MSC - order placing time in milliseconds since 00:00:00 01.01.1970
    • ORDER_TIME_DONE_MSC - order execution time in milliseconds since 00:00:00 01.01.1970

    Added COrderInfo::TimeSetupMsc, COrderInfo::TimeDoneMsc, CHistoryOrderInfo::TimeSetupMsc and CHistoryOrderInfo::TimeDoneMsc properties to Standard Library.

  4. Added a new deal property (ENUM_DEAL_PROPERTY_INTEGER enumeration):

    • DEAL_TIME_MSC - the time of a deal execution in milliseconds since 00:00:00 01.01.1970

    Added CDealInfo::TimeMsc property to Standard Library.

  5. Fixed placing market trade requests from MQL5 applications for symbols having Instant Execution type and an exceeded threshold, after which the execution type changes to Request Execution.
  6. Fixed an error preventing OnTradeTransaction event from being called at custom indicators.
  7. Standard Library. Fixed looping when using methods of working with directories in CFile class
  8. Standard Library. Fixed errors in Resize and Reserve methods for CArray* dynamic array classes.
  9. Standard Library. Fixed behavior of scrollbars and drop-down lists when using them in control elements (MQL5\Include\Controls).
  10. Standard Library. Fixed specifying pending order expiration time when using CTrade::OrderOpen method.

Strategy Tester

  1. Added free disk space control when a testing agent works with MQL5.Cloud Network - if at least 500 MB of free disk space is absent, connection to MQL5.Cloud Network is not performed.
  2. Fixed unnecessary reexecution of tasks when calculating genetic optimization for purely mathematical tasks.

MetaEditor

  1. Added Navigate Forward/Navigate Backward commands to the tool bar and menu.

    Added Navigate Forward/Navigate Backward commands to the tool bar and menu

  2. Added MQL5.Storage automatic activation - activation command is displayed in Navigator's context menu in case MQL5 account login and password are absent and MQL5.Storage base is empty:

    Added MQL5.Storage automatic activation

Fixed errors reported in crash logs.
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

7 March 2013
MetaTrader 5 Trading Terminal build 778: New MQL5 Profiler

Trading Terminal

  1. Fixed drawing One-Click Trading panel on a chart when working in Wine (for Linux, Mac).
  2. Fixed freezing when saving a chart screenshot during debugging of MQL5 applications.
  3. Fixed calculation of the distance to the lines for indicators with Zigzag drawing style.
  4. Fixed an error causing the inability to launch external scripts for the terminal events:

  5. Fixed an error causing the inability to launch external scripts for the terminal events

    Trading Signals

  6. Fixed behavior when synchronizing trading positions of a Signals Provider and a Subscriber in case a Subscriber has no active trading session for a symbol of one of the positions. Now, such a situation does not interrupt further synchronization, while the position in question is not synchronized till the next synchronization attempt.
  7. Fixed drawing labels on the charts used in the information about a signal.

MQL5

  1. Added publication of CHARTEVENT_CHART_CHANGE event when changing the chart type (CHART_MODE property of ChartGetInteger function).
  2. Fixed drawing Bitmap Label graphical object when installing the object from MQL5 application.
  3. Fixed OpenCL download error messages in case OpenCL is not supported.
  4. Fixed conversion of a string array element to the built-in enumeration.
  5. Fixed template typification using enumeration.
  6. Optimized working with fonts in MQL5 applications.
  7. Fixed an error in IndicatorRelease function leading to a memory leak when releasing the indicators inherited from the built-in ones.
  8. Standard Library. Added new control element class - CDatePickerCtrl (MQL5\Include\Controls\DatePicker.mqh) - control element for entering the date.
  9. Standard Library. Fixed filling order execution types in CTrade class (MQL5\Include\Trade\Trade.mqh) when working with symbols.

Strategy Tester

  1. Fixed display of the agent management dialog when using large system fonts.
  2. Fixed IndicatorRelease function call leading to a memory leak.

MetaEditor

  1. Improved visualization of the profiler's operation. Now, profiling data is displayed right in the source code.

  2. Improved visualization of the profiler's operation

  3. Fixed an error in the profiler's operation leading to deterioration of profiling results.
  4. Fixed an error when reverting changes in binary files when working with MQL5.Storage.

Fixed errors reported in crash logs.
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

19 February 2013
MetaTrader 5 Trading Terminal build 773

Trading Terminal

  1. Added one click trading panel:

    Added one click trading panel

    To show/hide one click trading panel, use the icon in the upper left corner or a context menu command.

  2. Added automatic display of trading transactions on charts:

    Added automatic display of trading transactions on charts

    Setting display of trading transactions on charts

  3. Fixed calculation of statistics in trading and tester reports.
  4. Added translation of the user interface into Romanian.

  5. Trading Signals

  6. Added command for refreshing the list of available signals in the signals showcase:

    Added command for refreshing the list of available signals in the signals showcase

  7. Optimized download of available trading signals' database.
  8. Improved matching of Forex symbols like EURUSDx when using a signal - transformations of the form EURUSDx => EURUSDy are now supported.
  9. Fixed drawing minicharts in the showcase of signals

MQL5

  1. Fixed text binding by anchor parameter in TextOut function.
  2. Fixed calling virtual functions during recursion.
  3. Added CHART_DRAG_TRADE_LEVELS chart property (available via ChartGetInteger and ChartSetInteger functions) - enabling/disabling modification of orders by dragging trading levels with the mouse.
  4. Fixed a compiler error in case a class does not have a constructor body.
  5. Changed TextSetFont function behavior - now, size parameter specifies the number of deciles of a font size. For example, if the value of 12 has been previously used as a size, it will be necessary to specify 120 now. Improved fonts display.
  6. Standard Library. Fixed setting default order expiration type in CTrade class when trading futures.
  7. Standard Library. Added TextSize method to CCanvas class - receiving the size of a specified string in pixels.
  8. Standard Library. Parametrized CreateBitmap and CreateBitmapLabel methods are added to CCanvas class - creating Bitmap and BitmapLabel graphical objects.
  9. Standard Library. Fixed errors in closing the panel in CAppDialog class.

Stratagy Tester

  1. Added processing OnTimer event when handling optimization result frames. Added MQL5_FRAME_MODE value to ENUM_MQL5_INFO_INTEGER enumeration in order to define the period when an Expert Advisor operates in the mode of gathering optimization result frames. This is necessary for the proper operation of OnChartEvent and OnTimer event handlers' functions.
  2. Added prohibition for using testing agents working on virtual OS in MQL5.Cloud.

MetaEditor

  1. Fixed MetaAssist freezing when working with large source files.

Fixed errors reported in crash logs.
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

26 January 2013
MetaTrader 5 Trading Terminal build 756

Trading Terminal

  1. Chart scale is now multiple of the symbol's tick size for the trading symbols having fixed tick size (futures).

    Chart scale is now multiple of the symbol's tick size for the trading symbols having fixed tick size

  2. Fixed display of the client's deposit currency in Exposure tab.
  3. Added support of the trading symbols accurate to 8 decimal places.
  4. Fixed trading dialog behavior when selecting a symbol, for which trading is disabled.
  5. Added display of allowed order types, execution and expiration modes to the information about a trading symbol.

    Added display of allowed order types, execution and expiration modes to the information about a trading symbol

  6. Fixed an error leading to the ability to use a mouse for moving the graphical objects invisible to the current time frame.

    Trading Signals

  7. Added visualization of signal's trading history on the terminal's charts:

    Added visualization of signal's trading history on the terminal's charts

    After clicking "Visualize", the client terminal automatically downloads the signal's trading history, opens appropriate charts and displays signal's deals as graphical objects in the same way as it is done for the trading account's history of the client terminal.

  8. Fixed and improved display of charts in the information about the signal. Charts now have the look similar to the one on MQL5.com. The trend line has also been added.

    Fixed and improved display of charts in the information about the signal

  9. Changed the algorithm for calculation of the copied deal's volume in case a Signal Source and a Subscriber have different leverages:

    Current algorithm:A deal volume is changed in direct ratio to the correlation of a Signal Source's leverage with a Subscriber's one. It means that if a Signal Source having a leverage of 1:100 opens a deal of 1 lot, a Subscriber having a leverage of 1:500 will open a deal of 5 lots in case of 100% copying and a deposit matching by size and currency. A subscriber having a leverage of 1:10 will open a deal of 0.1 lots in similar conditions.

    New algorithm:If subscriber's leverage exceeds the one of the Signal Source, it does not affect a volume of a copied deal. Otherwise, the deal volume is changed in direct ratio to the correlation of a Signal Source's leverage with a Subscriber's one.

    It means that if a Signal Source having a leverage of 1:100 opens a deal of 1 lot, a Subscriber having a leverage of 1:500 will open a deal of 1 lot in case of 100% copying and a deposit matching by size and currency. A subscriber having a leverage of 1:10 will open a deal of 0.1 lots in similar conditions.

  10. Fixed sorting of the signal list by the average profit.
  11. Fixed information about a signal when working under Wine (Linux and Mac).
  12. Fixed deposit currency conversion when subscribing to the signal with a deposit currency different from the Subscriber's one.

    MQL5 Market

  13. Fixed errors in shortcuts of MQL5 Market applications and screenshots.

MQL5

  1. Added TextOut, TextSetFont and TextGetSize functions:
  2. TextOut function transfers the text to the custom array (buffer) and returns the operation result. This array is designed for creation of a graphical resource.
    bool  TextOut(
       const string       text,          // displayed text
       int                x,             // X coordinate 
       int                y,             // Y coordinate 
       uint               anchor,        // anchor type
       uint               &data[],       // output buffer
       uint               width,         // buffer width in pixels
       uint               height,        // buffer height in pixels
       uint               color,         // text color
       ENUM_COLOR_FORMAT  color_format   // color format for output
       );
    TextSetFont function sets the font for displaying the text using drawing methods and returns the operation result.
    bool  TextSetFont(
       const string  name,            // font name or path to font file on the disk
       uint          size,            // font size
       uint          flags,           // combination of flags
       int           orientation=0    // text slope angle
       );
    TextGetSize function returns the line width and height at the current font settings.
    bool  TextGetSize(
       const string       text,          // text string
       uint&               width,        // buffer width in pixels
       uint&               height        // buffer height in pixels
       );
  3. Fixed loading the libraries using OpenCL.
  4. Fixed operation of CopyRates function when requesting the data exceeding the limitation of the terminal settings - the error is returned instantly instead of waiting for server call results.
  5. Fixed analysis of indicator_color property of a custom indicator.
  6. Standard Library. Added methods for working with text and fonts in CCanvas class.
  7. Standard Library. Added methods for working with CHART_IS_OBJECT and CHART_MOUSE_SCROLL chart properties in CCanvas.CChart class.

Strategy Tester

  1. Fixed defining the number of optimization steps which led to untimely optimization stop.
  2. Fixed support of hot keys when working with a chart in test visualization mode.
  3. Improved processing of test errors, increased the number of error messages saved in the tester log.
  4. Fixed order list update in test visualization mode.

MetaEditor

  1. Fixed display of special characters in file names in open document tab headings.

Fixed errors reported in crash logs.
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

18 December 2012
MetaTrader 5 Trading Terminal build 742

Trading Terminal

  1. Sped up initial downloading and repacking of price history from trading server.
  2. Fixed displaying of scrollbars and tooltips when working under Wine (Linux and Mac).
  3. Permission to use "One-click trading" is now stored separately for each trading account, not for the entire terminal.
  4. Fixed handling of alerts in form of Push messages. Now, description of alert is filled out automatically on sending.
  5. Fixed and optimized the operation of MQL5.com services when working via proxy servers.
  6. Added translation of online help into Bulgarian. Updated translations of user interface into other languages.

  7. Trading Signals

  8. Added filtering by signal age and by type of signal source account in the signals showcase. Added color highlighting of signals by type of signal source account:

    • Yellow - real account
    • Green - demo account
    • Blue - contest account

    Also added the command for quick search of a description of the signal the account is subscribed to - "My Subscription".

    Also added the command for quick search of a description of the signal the account is subscribed

  9. Added subscription renewal feature. Expanded information about the current subscription.

    Added subscription renewal feature

  10. Increased the maximum leverage for the sources of trading signals available for subscription - from 1:100 up to 1:500.
  11. Modified behavior for received requotes and other errors when synchronizing positions and executing signals. When requote is received, a retry of trading operation is performed with an increased allowed slippage (0.5 of current spread for the instrument).
  12. Added warning in terminal journal log if there is a mismatch of lot increment, minimum and maximum allowed lot values ​​in instruments of signal's source and subscriber.
  13. Fixed copying of signals when working with instruments with partial execution.
  14. Added sending of Push notifications on the terminal's initial synchronization with a trading signal and on trading operations performed by the terminal when copying the signal.
  15. Fixed an error that did not show the signals list if MQL5.community account was not specified.
  16. Fixed an error that in some cases could lead to the absence of "Signals" tab.

  17. MQL5 Market

  18. Fixed search error that allowed searching in products not available for purchase.

MQL5

  1. Added new function ArrayCompare:

    int ArrayCompare(const void &src1[],const void &src2[],uint start1=0,uint start2=0,uint count=WHOLE_ARRAY);

    Compared are arrays of simple types or custom structures without complex objects (strings, dynamic arrays, classes or other structures with complex objects). This function works only with arrays of the same type src1 and src2. When src1 is of type char and src2 is of type uchar, the error 302 "type mismatch" will occur.

  2. Added the CHART_IS_OBJECT chart property (for the ChartGetInteger function) - it indicates that a chart is the "Chart" graphic object.
  3. Added the CHART_MOUSE_SCROLL chart property (for the ChartGetInteger and ChartSetInteger functions) - it enables/disables scrolling of chart using a mouse. This property can be used when implementing graphical user interface in MQL5 programs.
  4. Fixed an error that in some cases led to a stack overflow during MQL5 programs execution.
  5. Changed OpenCL benchmark system: when OpenCL device(s) configuration is changed (including at the first run), terminal runs a test that determines device(s) performance and stores information in the registry.

    To automatically select the most efficient device, call the function of creating OpenCL context and specify CL_USE_ANY as the device number.

  6. Fixed the 'invalid EX5' message when using template functions.

Strategy Tester

  1. Results of main optimization and forward optimization are now displayed on different tabs of tester window. This allows an easier navigation in results of forward optimization.

    Results of main optimization and forward optimization are now displayed on different tabs of tester window

  2. MQL5 Cloud Network. Extended set of runtime error messages. This allows a better understanding of what caused the program failure.
  3. MQL5 Cloud Network. Increased amount of program execution statistics for more efficient tasks allocation.
  4. Added ability to load custom indicators "on demand" for cases when it is impossible to determine if some indicators have to be used with the #property test_indicator <indicator_name> or iCustom(<indicator_name>...) instructions.
  5. Forward testing settings can now be applied to a single test pass.

    Obtained two sets of results - from start date up to forward date and from forward date up to end date (instead of one set of results from start date up to end date) - accurately repeat the appropriate lines in optimization results with the enabled forward period. This feature is not yet provided in visualization mode.

  6. Fixed accounting of results when optimizing by the "Balance + min Drawdown" criterion.

MetaEditor

  1. Fixed hotkeys behavior in active MetaAssist windows.
  2. Improved MetaAssist behavior with MQL5 programs properties (#property).
  3. Modified displaying of char type variables in debugger. If value corresponds to a printable character, this character is also displayed.

    Modified displaying of char type variables in debugger

  4. Fixed displaying of sinput variables in debugger.
  5. MetaAssist now displays properties and methods of objects that have referencing by index in arrays.
  6. Added commands to navigate between previously opened documents - Navigate Forward and Navigate Backward:

    Added commands to navigate between previously opened documents - Navigate Forward and Navigate Backward

Fixed errors reported in crash logs.
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

24 November 2012
MetaTrader 5 Trading Terminal build 730

Trading Terminal

  1. Fixed connection to MQL5.community in case of extra spaces in account login.
  2. Added chart vertical positioning using Up and Down keys in case of a fixed scale.

  3. Trading Signals:

  4. Changed signal list display. The signals installed on the server of the broker, to which the terminal corresponds, are now displayed by default. In case of the signals' absence, the ones installed on MetaQuotes demo server are displayed. Select "Full Signal List" in the signals context menu to see the complete signal list.


    The signals installed on the server of the broker, to which the terminal corresponds, are now displayed by default

  5. Added limitation on subscription to trading signals. Subscription to signals with leverage exceeding 1:100 is not permitted. This has been done to prevent users from subscribing to unreasonably risky strategies.
  6. Fixed automatic transformation of EURUSD* type Forex trading symbols. If a signals source has positions at EURUSD! symbol, while a subscriber trades on EURUSD (or vice versa), the terminal will automatically detect the similarity of the trading symbols changing their names when copying the signal.
  7. Fixed the warning dialog about the automatic synchronization of positions with a trading signal in case of several re-synchronizations within one working session of the terminal.

MQL5

  1. Fixed an error causing the inability to create an indicator using IndicatorCreate function.
  2. Added support for storing indicators in EX5 resources. In this case, the indicators in the resources will not be able to work with their own resources.
  3. Fixed zero suppression when re-entering numeric parameters of MQL5 programs.
  4. Standard Library. Fixed CExpertMoney::CheckOpenShort method for short position's volume calculation.

Strategy Tester

  1. Fixed freezing when working in Wine (Linux and Mac).
  2. Fixed test report display when working in Wine (Linux and Mac).

MetaEditor

  1. Fixed restoring the input focus in a document after using MetaAssist with subsequent closing of the dialogs.

Fixed errors reported in crash logs.
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 November 2012
MetaTrader 5 Trading Terminal build 722

Trading Terminal

  1. Added "Test" command to the context menu of MQL5 applications - enabling Strategy Tester with an MQL5 application selected for testing.

    Added Test command to the context menu of MQL5 applications

  2. Fixed trailing stop operation for pending orders.
  3. Fixed MQL5 Market product list update.
  4. Added the percentage value of the last deal's price change relative to its previous value into the trading symbol's price statistics.
  5. Fixed navigation through a chart in case of a specified fixation point.
  6. Fixed the terminal operation in corporate networks having proxy servers.

Trading Signals

  1. Added automatic conversion of EURUSD* type Forex trading symbols. If a signals source has positions at EURUSD! symbol, while a subscriber trades on EURUSD (or vice versa), the terminal will automatically detect the similarity of the trading symbols changing their names when copying the signal.
  2. Added display of active orders and signal positions in the signal's description.

    Added display of active orders and signal positions in the signal's description.

  3. Added the dialog of consent to synchronize positions on a subscriber's account with signal's ones in case of a positive floating profit on a signal provider's account:

    Added the dialog of consent to synchronize positions on a subscriber's account with signal's ones in case of a positive floating profit on a signal provider's account

    By default, synchronization is allowed only if the floating profit on the provider's account is not positive. This ensures that the signal subscriber can enter the market at a price that is not worse than the provider's one during synchronization of positions. Thus, the appropriate dialog window is shown before synchronization where traders can enable forced synchronization of positions with the signal, despite the positive floating profit.

  4. Added the dialog of automatic closing of positions and orders on a subscriber's account before synchronizing with signal provider's positions and orders:

    Added the dialog of automatic closing of positions and orders on a subscriber's account before synchronizing with signal provider's positions and orders

    Before synchronization, subscribers should close positions and remove orders opened manually or based on another signal. If open positions or pending orders unrelated to the provider's signals are detected, the client terminal will offer to remove all pending orders and close all positions automatically at the current price. However, traders can perform all necessary actions manually.

MQL5

  1. Added support of template functions and methods.

    Templates can be compared with a macro (#define) representing an entire function instead of an expression. A template is inserted into the code in case the template function is called based on this call's parameters.
    A separate function (with its own static variables) is added by the compiler for each of the existing sets of the template function call's parameters present in the code.

    Example of the template function for calculation of the array's highest value:
    template<typename T>                       // В < > указываются параметры шаблона через запятую, не более 8.
    T ArrayMax(const T &data[],const T defval) // В качестве параметра может выступать только тип
      {
       T    result=defval;
       uint size  =ArraySize(data);
    //---
       for(uint i=0;i<size;i++)
         {
          if(result<data[i])
            {
             result=data[i];
            }
         }
    //---
       return(result);
      }
    Keep in mind that automatic reduction of parameters is not allowed when a template function is called. The parameter type should be clearly defined. For example, when calling ArrayMax function for char type array and CHAR_MIN as defval, the second parameter's type should be clearly defined as char:
    char a[];
       
       Print(ArrayMax(a,CHAR_MIN));       // ошибка, невозможно применить шаблон, т.к. T может быть или char или int
       Print(ArrayMax(a,(char)CHAR_MIN)); // ошибки нет, параметр шаблона T может быть только char
    Number of template parameters cannot exceed 8. Insertion of templates into the code is performed only by call parameters, evident template typification is not performed.
    Example of evident typification:
    Print(ArrayMax<char>(a,CHAR_MIN));  // Явная типизация шаблона пока не доступна!
  2. Enhanced integer properties received by CLGetInfoInteger function:

    • CL_DEVICE_VENDOR_ID  - OpenCL device vendor ID
    • CL_DEVICE_MAX_COMPUTE_UNITS  - number of OpenCL device computational units
    • CL_DEVICE_MAX_CLOCK_FREQUENCY - frequency of OpenCL device computational units
    • CL_DEVICE_GLOBAL_MEM_SIZE - size of the global memory of OpenCL device
    • CL_DEVICE_LOCAL_MEM_SIZE - size of the local memory of OpenCL device

  3. Added CLGetInfoString returning the following OpenCL properties:

    • CL_PLATFORM_PROFILE - OpenCL platform profile type
    • CL_PLATFORM_VERSION - OpenCL platform version
    • CL_PLATFORM_NAME - OpenCL platform name
    • CL_PLATFORM_VENDOR - OpenCL platform vendor name
    • CL_PLATFORM_EXTENSIONS - OpenCL platform possibilities (extensions)
    • CL_DEVICE_NAME - OpenCL device name
    • CL_DEVICE_VENDOR - OpenCL device vendor name
    • CL_DRIVER_VERSION - OpenCL device driver version
    • CL_DEVICE_PROFILE - OpenCL device profile type
    • CL_DEVICE_VERSION - OpenCL device version
    • CL_DEVICE_EXTENSIONS  - OpenCL device possibilities (extensions)
    • CL_DEVICE_OPENCL_C_VERSION - supported version of OpenCL compiler
  4. Added CLExecute overload function allowing users to specify dimensions of OpenCL local space of tasks.
  5. Fixed ArrayFill function operation.
  6. Removed warning when using an uninitialized variable in sizeof() function.
  7. Improved  __FUNCSIG__ macro - added notification of the fact that parameters are arrays, as well as of their constancy.
  8. Standard Library. Fixed CCanvas::FillRectangle method.
  9. Standard Library. The classes for working with files are transformed using template methods.
  10. Standard Library. Added support of operator [] in CArray* dynamic array classes.
  11. Standard Library. Enhanced CCheckGroup class methods - "checkbox group" control element.
  12. Standard Library. Added CIndicator::BarsCalculated method.

Strategy Tester

  1. Added the tester's compatibility with Wine.
  2. Added additional checks for disk errors during the tests.
  3. Fixed generation of week bars for trading symbols with a quote session on Sundays.
  4. Fixed generation of week and month bars - the bar time has sometimes been set incorrectly.
  5. Cloud agent having less than 100 megabytes of available disk space cannot execute the tasks.
  6. Removed log messages on charging commission during optimization.
  7. Fixed settings dialog behavior when testing an indicator.
  8. Fixed optimization chart display in case of a large number of passes.

MetaEditor

  1. Added support of template functions and methods in MetaAssist.

Fixed errors reported in crash logs.
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

13 October 2012
MetaTrader 5 Trading Terminal build 712

Trading Terminal

  1. Signals. Added copying SL and TP from a signals source.

    Signals. Added copying SL and TP from a signals source

  2. Signals. Improved the algorithm of the deal volume automatic calculation when entering the market. The ratio of the deposit's size and currency is now considered, as well as the account leverage. Obtained result is shown in percentage terms and rounded to tens (10%, 20%, etc.).
  3. Signals. Added support of searching by signal base.

    Signals. Added support of searching by signal base

  4. Signals. Fixed drawing the charts on a signal data page in case of data insufficiency.
  5. Signals. Fixed display of minicharts in the list of available signals.
  6. Signals. Added protection from simultaneous SL\TP activation and close signal arrival.
  7. Signals. Enhanced logging on synchronization of an account with a signal source.
  8. Signals. Fixed display of signal data and crash of the navigation among signals when working in Wine.

MQL5

  1. Fixed the type returned by ObjectDelete function - int is replaced by bool.
  2. Added CHART_FIXED_POSITION chart property for ChartGetDouble\ChartSetDouble functions - managing the chart fixation point.
  3. Added support for Named Pipes including CFilePipe standard library class.

Stratagy Tester

  1. Fixed specifying a saved file snapshot of genetic optimization state.
  2. Fixed the shift of a test starting date if there is not enough price history.
  3. Fixed the tester crash after testing an Expert Advisor working with a custom indicator using any other indicator.

Fixed errors reported in crash logs.
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

5 October 2012
MetaTrader 5 Trading Terminal build 705

Trading Terminal

  1. The MetaTrader 5 Client Terminal has been integrated with the MQL5.Signals service. Now every MQL5 account holder can subscribe to trading Signals Sources, including the Automated Trading Championship 2012 participants.

    Moreover, the Client Terminal will copy trading signals with minimum delays according to the signal settings.

    Control of signals in the MetaTrader 5 Trading Terminal

    The list of signals in the MetaTrader 5 Trading Terminal

    The report on signals in the MetaTrader 5 Trading Terminal

    One trading account on the broker's trade server can be subscribed to only one Signals Source at a time. To change the Signals Source, the active subscription has to be revoked.

    Before the Signal is copied, client's positions undergo the initial synchronization with the positions of the Signals Source. There shall be no orders or positions in the client account of the Subscriber that were opened by the client or based on the Signal from another Signals Source. Moreover, the initial synchronization is only possible in case the total floating profit of the Signals Source is not positive, thus the Subscriber will enter the market at the price which is not worse than that at which the Signals Source entered the market.

    The synchronization initiates the opening of the client's positions in the same direction and trading instrument as the positions of the Signals Source. The opening position volume is determined according to the money management settings. The positions are opened using market orders with slippage specified in the settings. SL and TP levels are also copied, unlike pending orders that are not copied.

    Further copying of the Signal is subject to successful synchronization the results of which are recorded in the terminal log labeled "Signal".

    Following the successful initial synchronization, new transactions in the account of the Signals Source are copied again by performing the same transactions in the client account of the Subscriber using market orders. The order volume and slippage are determined according to the settings. Changes in the SL and TP levels for open positions are also copied. All actions associated with the copying of the signal are recorded in the terminal log labeled "Signal".

    The copying of signals does not provide for the possibility of concurrent trading either manually or using an Expert Advisor. Any results of copying the signal are incalculable after such interference.

    If an error occurs when copying the signal - connection failure, order placing error, etc. - the account will again be synchronized with the Signals Source.

    The signal settings require the specification of the money management, i.e. the algorithm for determining the volume of transactions with respect to the volume of transactions of the Signals Source:

    • Automatic - the volume is determined in proportion to the Subscriber's and Signals Source's balance ratio.
    • Percentage based - the volume is determined as a specified percentage of the signal's volume in the Signals Source.

    Trading operations are performed with a permissible slippage set by the "Slippage" parameter that is expressed in spreads of a trading instrument.
    The copying of the signal will stop automatically if Equity falls below the level specified in the settings. All previously opened positions will in this case get closed.

  2. Fixed setting SL and TP values in the position modification dialog for instruments with a fixed tick size.
  3. Fixed handling commands for arranging chart windows horizontally and vertically
  4. Fixed the display of the purchased Product list in MQL5.Market.

MQL5

  1. Fixed the TERMINAL_LANGUAGE value in the TerminalInfoString function, when using the default language.
  2. Fixed the copy constructor check.
  3. MQL5: Fixed handling critical errors for х64.
  4. Standard Library. Fixed passing the Expert Advisor's Magic number when performing trading operations in the CTrade class.
  5. Standard Library. Fixed the calculation of risks using the CMoneyFixedRisk class.

Strategy Tester

  1. Fixed the memory leak when clearing the list of utilized indicators.
  2. Added the calculation of commissions when testing and optimizing.

MetaEditor

  1. Redesigned and optimized the local editor database for working with MQL5.Storage.

Fixed errors reported in crash logs.
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

6 September 2012
MetaTrader 5 Trading Terminal build 695

Trading Terminal

  1. Added quick position closing and orders deletion by a single mouse click.
    Click the cross in "Profit" column of orders and positions list to close a position or remove a pending order.

    Closing and orders deletion by a single mouse click

    If "One-click trading" option is enabled in the terminal settings, position will be closed immediately at the current price (order will be removed). If the option is disabled or quick closing is impossible (for example, for trading symbols having Request Execution type), the standard position closing (order removal) dialog will appear.

    One-click trading option

  2. Fixed displaying positions having "Futures" calculation type in "Exposure" window.
  3. Fixed working with Expert Advisors tree in "Navigator" window.
  4. Fixed possible failure of downloading products from MQL5.Market.
  5. Updated translation of the interface into Japanese.

MQL5

  1. Changed the order of calling the constructor of an object returned by the function:
    Formerly, the constructor has been called by default before the function returning an object, while the copy operator has been called inside the function for return.
    Now, the appropriate constructor, copy constructor or default constructor calling the copy operator are called in return operator for an object returned from the function.
  2. Fixed a typo in one of the ENUM_SERIES_INFO_INTEGER enumeration values (SERIES_SYNCRONIZED -> SERIES_SYNCHRONIZED). Please make changes in the codes where the value is used.
  3. Fixed working with constant pointers.
  4. Fixed loading the libraries consisting only of resources.
  5. Standard Library. Fixed CDialog behavior during minimization.
  6. Standard Library. Added modification of stop-limit orders in CTrade::OrderModify method.
  7. Standard Library. Changed implementation of several methods for correct working with constant pointers to objects.

Strategy Tester

  1. Improved the algorithm of assigning the tasks to the agents considering the memory consumption.
  2. Fixed generating the volumes when testing by open prices for the timeframes larger than the main one.
  3. Fixed possible incorrect generation of bars at large timeframes when testing using open prices.
  4. Fixed applying a saved state of genetic optimization that could lead to "freezing" of the relaunched optimization in some cases.
  5. Added optimization "by all symbols from Market Watch" in the absence of an optimized Expert Advisor's input parameters.
  6. Fixed possible incorrect display of the last price in Market Watch during the first request of data on another symbol.
  7. Added prohibition for the agents with physical memory less than 768 MB to connect MQL5.Cloud.
  8. Added guaranteed transfer of the complete agent's log during the tests.

MetaEdtor

  1. MetaEditor: Added support for projects in MQL5.com

    Projects allow programmers to develop MQL5 applications in teams. Teamwork is performed via MQL5 Storage. It means that a user should have an active account on MQL5.community and connect to MQL5 Storage.

    Projects in MQL5.com

    Projects folder in MQL5 directory has been implemented for common projects. It is shown in blue in Navigator.
    Despite the fact that Projects folder is located inside MQL5, the projects are located separately from the user's personal directory (https://storage.mql5.com/svn/Personal/<MQL5.community account>/MQL5).
    All projects are stored in a separate section https://storage.mql5.com/svn/Projects/

    The top-level directory in Projects folder is considered to be a project. Therefore, a new folder should be created in Projects section to create a project. Use "New Folder" option to create the new folder, select it and click "Create Project" in the context menu.
    The project will be created. Reports on successful project creation will be displayed in MetaEditor's journal.

    Access to each project is set only by a project author (a user who created it).
    To start a teamwork on a project, you should allow other users to access it. Click "Add Permission" in the context menu of a created project folder and add a new user by specifying his or her MQL5.community login.

    Collaboration over the project in MetaEditor

  2. Click "Checkout" in "Projects" folder context menu to upload available projects. The projects will be uploaded from the storage. All further operations with them are similar to the ones with conventional files assigned to MQL5 Storage.

  3. Fixed MetaStyler operation - considering interline alignment for the lines beginning from #.
  4. Fixed errors occurred when working with MQL5.Strorage.
  5. Fixed display of parameters of class methods in MetaAssist when addressing via this.

Fixed errors reported in crash logs.
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

3 August 2012
MetaTrader 5 Client Terminal build 687

Trading Terminal

  1. Fixed errors when making purchases in MQL5.Market.
  2. Fixed errors when working with MQL5.Market having UAC enabled.
  3. Fixed specifying a symbol in the new order placing dialog when using the chart context menu and the list of open positions and orders.

MetaEditor

  1. Fixed errors in changes display dialog when working with MQL5.Storage.
  2. Fixed errors when renaming and deleting files stored in MQL5.Storage.
  3. Fixed the error when using windows placement commands: Cascade\Tile Windows\Tile Horizontally\Tile Vertically.

Strategy Tester

  1. Fixed crashes when stopping the visual tester.
  2. Fixed disabling the agents in the client terminal during a test.
  3. Fixed calculation of the estimated number of genetic optimization passes.

Fixed errors reported in crash logs.
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

1 August 2012
MetaTrader 5 Trading Terminal build 684

Trading Terminal

  1. Added highlighting the account status bar, if the account is in Margin Call or Stop Out states.

    Highlighting the account status bar, if the account is in Margin Call or Stop Out states

  2. Fixed drawing of the "Fibonacci Fan" object.
  3. Fixed calculation of a chart scale in "Scale points per bar" mode.
  4. Fixed terminal crash when working in Wine (for Linux, Mac).
  5. Fixed display of internal emails and news under Windows XP with Internet Explorer 6.0.
  6. Fixed search on MQL5.com website when working in older Windows XP versions.
  7. Updated translation of the client terminal into Bulgarian.

MQL5

  1. Added request_id field in MqlTradeResult structure - a unique identifier of the terminal trade request during a network session.

    This field is filled by the client terminal when a trade request is successfully sent to the server. Further on, this field is filled in result parameter of OnTradeTransaction entry point. Therefore, the opportunity of clear comparison of OrderSend and OrderSendAsync functions calling with getting the trade request results at OnTradeTransaction entry point is provided.

  2. Added compatibility of ex5 programs with DLLs created using .NET.
  3. Fixed optimization of the functions that return the structures.
  4. Added operation signs in the profiler mode:
    • IS_PROFILE_MODE - macros determining MQL5 program compilation in the profiling mode
    • MQL5_PROFILER - new value of ENUM_MQL5_INFO_INTEGER enumeration - determining the programs operation in the profiler mode. MQL5InfoInteger function should be used to get the value.
  5. Disabled inlining of large volume functions leading to excessively large EX5 files.
  6. Standard Library. Added SetTransparentLevel transparency management method to CCanvas class.
  7. Added the new sinput (static input) key word preventing manual input of values for searching an input parameter during optimization.
  8. Added ParameterSetRange(string name, bool enable, double value, double start, double step, double stop) function, which allows redefining the very possibility of searching the values, as well as the range of searched values before launching the optimization. The function can be called only from OnTesterInit handler. The function can also be applied to the input parameters protected by sinput key word.
  9. Added ParameterGetRange(string name,bool& enable, double& value, double& start, double& step, double &stop) function. It can be called from OnTesterPass and OnTesterDeinit handlers.

MetaEditor

  1. Fixed automatic saving of all open files before the compilation.
  2. Added the snippet for OnTradeTransaction entry point.

    For ease of writing code, MetaEditor provides the possibility to insert snippets — small template fragments of source code describing a particular construction of the MQL5 language. Insertion of a snippet is initialized by typing the keyword. After you type the keyword the cursor is changed to "Snippet available". To insert a snippet, you should press "Tab". For more information about working with snippets please read the MetaEditor Help.

    The key word for OnTradeTransaction entry point is OnTradeTransaction.

  3. MQL5.Storage - fixed MQL5 Storage errors related to determining the presence of changes.
  4. Fixed results display for the "inline" code in the profiler.
  5. Fixed search on MQL5.com website when working in older Windows XP versions.

Strategy Tester

  1. Removed the limit of 63 simultaneously optimized parameters.

    All input parameters can now be included for optimization (the number of input parameters is limited by 1024). It means that the space that can have the maximum value to be written in the integer 1024-bit value can be used in the genetic search for the optimal parameters. The protocol of data transfer between the terminal and tester agents has been changed for big indices of the optimized variants.

    Therefore, all previous versions of tester agents will not be able to connect to the cloud network and (or) the client terminal because of the protocol change and will be updated automatically via LiveUpdate system.

  2. Fixed an error leading to incorrect saving of genetic optimization snapshot. The error occurred only on the "fast" mathematical optimizations.
  3. Fixed report on test results when determining losses and profits sequences.
  4. Fixed crash of the client terminal when deactivating the tester agents.

    Fixed errors reported in crash logs.

    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

13 July 2012
MetaTrader 5 Client Terminal build 674

Trading Terminal

  1. Added the ability to post screenshots of charts on MQL5.com. When saving a screenshot, just select the appropriate option and the screenshot will be automatically placed on www.mql5.com, while a trader will get its address for posting on other websites and forums.


  2. Improved the algorithm of a trend line inclination angle calculation.
  3. Fixed display of available bars number in a chart tooltip.
  4. Fixed display of news with the same publication time.
  5. Added support for canceled deals display.
  6. Fixed display of close button when closing a deal with a volume less than the minimum allowed one.
  7. Fixed spread and tick volume calculation in charts generated by the terminal.

MQL5

  1. Added OnTradeTransaction entry point - getting information about trade transactions performed for a trade account.

    void OnTradeTransaction(const MqlTradeTransaction& trans,const  MqlTradeRequest& request,const MqlTradeResult& result)

    The entry point is called to transfer the data on the trade transactions performed for a trade account to MQL5 program:

    • adding, modifying, deleting open orders
    • adding, modifying, deleting orders in history
    • adding, modifying, deleting deals
    • modifying a position
    • execution of client's trade requests and getting the results.

    The client terminal stores the history of transactions and consistently transfers them to an Expert Advisor, if an entry point is present. The history is limited to 1024 transactions and cleared during the next connection.

    Note that transactions processing in the terminal is performed independent of transactions processing in MQL5 program. For example, while an Expert Advisor processes a transaction to add a new order, the terminal can at the same time get a transaction to delete the appropriate order and move it to history.

  2. Fixed making long screenshots of charts by MQL5 means (ChartScreenShot function).
  3. Fixed getting an empty last bar for the symbols built by Last prices.
  4. Added checking the presence of available history when executing request functions in synchronous requests of the price history.
  5. Added the function of ArrayFill numeric array filling. The function is an equivalent of memset C function and allows to initialize a memory area as efficiently as possible.
  6. Updated ENUM_SYMBOL_SWAP_MODE enumeration - swaps accrual parameters for open positions - new values added and part of previous ones renamed. Previous enumeration values are still supported for compatibility.
  7. MQL5: Enhanced ENUM_DEAL_TYPE "deal types" enumeration values set. The following values are added:

    • DEAL_TYPE_BONUS - depositing a bonus by a broker
    • DEAL_TYPE_COMMISSION - charging commission by a broker
    • DEAL_TYPE_COMMISSION_DAILY - charging commission by a broker according to trading day results
    • DEAL_TYPE_COMMISSION_MONTHLY - charging commission by a broker according to month results
    • DEAL_TYPE_AGENT_DAILY - depositing the agent's commission according to trading day results
    • DEAL_TYPE_AGENT_MONTHLY - depositing the agent's commission according to month results
    • DEAL_TYPE_INTERESTRATE - depositing accrued interest rate on free funds
    • DEAL_TYPE_BUY_CANCELED - canceled buy deal
    • DEAL_TYPE_SELL_CANCELED - canceled sell deal
  8. Standard Library. Added possibility to manage the list elements in CComboBox class.
  9. Standard Library. Added CCanvas class (MQL5\Include\Controls\Canvas.mqh).

    CCanvas class allows to implement various graphics on custom charts of "Bitmap" and "Bitmap Label" types. In fact, these objects turn into a surface for drawing any image. Thus, it is possible to create custom graphical objects, apart from the ready-made terminal ones.

    The class implements the functions for drawing lines, circles, rectangles, polygons, their filling and filling any area in a specified color. Besides, the client terminal distribution kit now has the example of the class application CanvasSample (MQL5\Scripts\Examples\Canvas\CanvasSample.mq5).


Strategy Tester

Added saving the intermediate data of the genetic optimization - the optimization process will start from where it was stopped, not from the beginning.

MetaEditor

  1. Added MQL5 programs profiler - the built-in tool for gathering program parameters during its operation. Attention is paid to such parameters as functions execution time, number of functions calls, separate code fragments execution time. This tool allows programmers to analyze their application, find its critical parts and write more optimal code.


    Profiling results are exported in HTML, CSV and OpenXML formats. To move to a specific code line, just double-click on the appropriate profiling report line.

  2. Fixed comparing files with the contents of MQL5 Storage.

    Fixed errors reported in crash logs.
    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

6 June 2012
MetaTrader 5 Client Terminal build 655

Trading Terminal

  1. The client terminal supports sending messages concerning various events to iOS and Android powered devices using push notifications. With this feature, traders are always aware of all events.

    Push notifications are short messages consisting of not more than 255 symbols. Such notifications are delivered immediately and they cannot be lost along the way.

    Push notifications can be sent in two ways from the client terminal:

    Via MQL5 application

    Special SendNotification function is available in MQL5 language allowing MQL5 application to send push notifications to MetaQuotes ID specified in the terminal settings.

    Via signals function

    The client terminal allows to create the signals used to notify about the market events. They are set at the "Alerts" tab of the "Toolbox" window. One type of alerting about the events is sending push notifications.

    • Push notifications can also be used to get information about MQL5.community website updates. To do this, enter your MetaQuotes ID at the "Contacts" tab of your user profile.
    • The number of sent messages is limited: not more than 1 message per 0.5 seconds and not more than 10 messages per minute.

    Options Natifications

    Check "Enable Push Notifications" box to allow the client terminal to send messages.

    Then, specify one or several MetaQuotes IDs separated by commas. To find out your MetaQuotes ID, open the mobile version of the terminal and go to Settings -> Messages page. That is how that page looks in the mobile terminal for iPhone:

    MetaQuotes ID

    Press "Test" button to test messages sending. If sending is successful, you will see the appropriate message and the test notification will be delivered to your mobile device.

  2. Added the button link to MQL5.community website at the client terminal toolbar.


    MQL5.community Buton

  3. "Charts" and "Objects" tabs are combined into one in the terminal settings.

    Charts and Objects

  4. 32-bit version of the terminal has been compiled with the possibility to expand the available virtual address space. The volume of the available memory is expanded from 2 Gb:

    • to 3 Gb when using 32-bit operation system. Special keys for downloading the operation system are necessary to enable this mode in 32-bit operation system;
    • to 4 Gb when using 64-bit operation system. No additional actions are required to enable this mode in 64-bit operation system.
  5. Added display of "Label" and "Bitmap Label" graphical objects sizes in their properties dialog:

    Added display of "Label" and "Bitmap Label" graphical objects sizes in their properties dialog

  6. Fixed the change of an object name after its creation in case "Show object properties after creation" option is enabled - the object could not be modified or deleted after changing its name without restarting the terminal.
  7. Added prohibition on changing the path to "Bitmap" type images created from MQL5 programs.
  8. Improved scanning for trading server access points - reduced scanning period and clarified the best point selection algorithm.
  9. Improved display of the "Edit" graphical object when using "Wingdings" font.
  10. Fixed moving the graphical objects with a mouse in case of the disabled date scale.

MQL5

  1. Changed timer events processing algorithm. Timer events have been placed in the queue in any case, regardless of the presence of the events not processed by the timer. Now, new events are not added, if the queue has at least one timer event.
  2. Added ChartTimePriceToXY and ChartXYToTimePrice functions - modifications of a chart coordinates from time/price representation to X and Y axes coordinates and vice versa for a specified chart and its subwindow.
  3. Added ResourceCreate function - for loading a resource from a file or creating an image:

    Creating the resource from the file:

    bool  ResourceCreate(
       const string      resource_name,       // resource name
       const string      path                 // relative path to the file
       );
    Creating an image based on the pixels array:
    bool  ResourceCreate(
       const string      resource_name,       // resource name
       const color&      data[],              // data set as an array 
       uint              img_width,           // created resource image width
       uint              img_height,          // created resource image height
       uint              data_xoffset,        // horizontal offset of the upper left corner of the created image to the right
       uint              data_yoffset,        // vertical downward offset of the upper left corner of the created image
       uint              data_width,          // image total width based on data set
       ENUM_COLOR_FORMAT color_format         // color handling method
       );

    The first case of the function allows to load images and sounds from files, the second case allows only to create images dynamically. Images must be in BMP format, color depth - 24 or 32 bits, sounds can only be in WAV format. A resource size must not exceed 16 Mb.

  4. Added ChartIndicatorGet function - getting an indicator handle on a specified chart and its subwindow by its short name.
  5. Added IndicatorParameters function - getting an indicator parameters type and array by its handle.
  6. Fixed behavior when accessing an index outside an array - position of the opening square bracket '[' before the index, which returns an error when accessing it, is specified when generating a message to be displayed in the Expert Advisors journal.
  7. Completed the works on adding profiling support in MQL5 language. MetaEditor profiling function is to be added in the next build.
  8. Fixed the client terminal connection status check when launching an Expert Advisor - avoided delays caused by that check when an Expert Advisor started its operation after the terminal launch.
  9. Added "event handling function not found" compilation error, in case there are no access points (OnStart, OnTick, etc.) in the application.
  10. Fixed compilation when calling the class static methods from another class.
  11. Fixed errors in '?' statement.
  12. Renamed ENUM_ORDER_TYPE_FILLING enumeration elements:

    • ORDER_FILLING_AON  renamed as ORDER_FILLING_FOK
    • ORDER_FILLING_CANCEL renamed as ORDER_FILLING_IOC
  13. Standard Library.

    • Controls. Fixed the panels behavior in a separate indicator subwindow.
    • Controls. Fixed drag'n'drop controls behavior.
    • Controls. Added TextAlign text uniformity property to CEdit and CChartObjectEdit classes.
    • Controls. CRect class is transformed into the structure.
    • Added CCanvas class (Include\Canvas\Canvas.h) for creating own images resources.
    • Added asynchronous trading support to CTrade class.
  14. Added the ability to test the indicators including the ones downloaded from MQL5 Market:

    Added the ability to test the indicators

    Therefore, it is now possible to evaluate behavior of an indicator during the changes in history.

Strategy Tester

  1. Added support for OpenCL programs application in tester agents.

    OpenCL programs are used for performing computations on video cards that support OpenCL 1.1 or higher. Modern video cards contain hundreds of small specialized processors that can simultaneously perform simple mathematical operations with incoming data streams. The OpenCL language organizes parallel computing and provides greater speed for a certain class of tasks.
  2. Corrections in test results reports:

    • fixed the charts
    • added holidays consideration in a position lifetime calculation.
  3. Added export of the new report on results of tests in HTML and OpenXML formats.

MetaEditor

  1. Added С++ files (*.cpp) compilation support in case Microsoft Visual Studio 2008/2010/Express is installed.

    Added С++ files (*.cpp) compilation support in case Microsoft Visual Studio 2008/2010/Express is installed

    Thus, it is possible to debug and modify custom DLLs written in С++ right in MetaEditor.

  2. by dragging DLL on an open MQL5 source code file:

    Added the ability to automatically add exported DLL functions to MQL5 file

  3. Fixed files modification verification in MQL5 Storage from an external editor (not from MetaEditor).
  4. Fixed Revert command behavior when working with MQL5 Storage.
  5. Fixed search in files in "Match whole word only" mode.
  6. Fixed transition between the function parameters during MetaAssist operation.

    Fixed errors reported in crash logs.
    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

24 April 2012
MetaTrader 5 Trading Terminal build 642

Trading Terminal

  1. Added global search in the client terminal and at MQL5.com.

    The Search in the terminal allows you to quickly find information in all sections of the client terminal, Code Base and MQL5.com.
    It is a case-insensitive search for a substring. The search is performed in the sections selected in the search parameters:

    Global search in the Client Terminal and at MQL5.com

    The context menu of the search results tab contains additional commands, which depend on the type of results:

    Search result in the MetaTrader 5 Client Terminal

  2. Fixed display of order volumes in the Market Depth for partially filled orders.
  3. Fixed checking of the expiry price of a pending order in the pending order placing dialog.

MQL5

  1. Added asynchronous sending of trade requests OrderSendAsync.

    Using this feature allows to speed up placing of trade requests, and especially when placing mass request, since in this case there is no need to wait for the results of the previous request when placing a new one. Because of its asynchronous nature, this function is not suitable for placing market orders for symbols with the Request execution mode.

    The function performs the initial verification of a request on the side of the client terminal and enqueues it to send to the trade server without waiting for the results of sending and receiving of confirmation from the server.

    If necessary, the operation of the function on the server is monitored by an Expert Advisor by handling the OnTrade event.

  2. Added a trading symbol property SYMBOL_ISIN (getting through the SymbolInfoString function) - the name of the trading symbol in the international system of securities identification numbers.

    ISIN, International Securities Identification Number is a 12-digit alphanumeric code that uniquely identifies a security.

    The availability of this symbol property is defined on the trade server side.

Strategy Tester

  1. Extended report of testing results - added MFE-Profit Correlation, MAE-Profit Correlation and MFE-Profits and MAE-Profits distribution graphs.

    Added MFE-Profit Correlation, MAE-Profit Correlation and MFE-Profits and MAE-Profits distribution graphs

    Maximum Favorable Excursion (MFE) - is the maximum potential profit reached while holding a position.

    MFE-Profit Correlation - a correlation between the position returns and MFE. Each trade had its maximal profit and maximal loss between opening and closing. MFE shows profit in the favorable excursion of the price. Each trade is corresponded with its return and with two parameters - MFE and MAE. Thus, we can draw each trade on a plane where MFE is plotted along the Х-axis, the return is plotted along the Y-axis. The closer is the return to the MFE, the more complete was the favorable excursion of the price was used. The straight on the graph shows approximation by function Profit=A*MFE+B. The Correlation(Profits,MFE) allows to estimate relation between the profits/losses and the MFE. The closer to 1 is this value, the better will the trades fit into the approximation straight. The closer to zero it is, the less considerable is this relation. MFE characterizes the ability to realize potential profit.

    Graph of MFE-Profits Distribution - points plotted on the graph MAE (X-axis) - Profits (Y-axis) indicate positions. Values of both axes are given in the deposit currency. Thus, for each transaction we see not only the acquired profit value including swaps along the Y-axis, but also maximally possible profit during the position lifetime. It allows us to estimate the quality of protection of the paper (unrealized) profit. Though the distribution of points along the chart gives a satisfactory view of the trade system, a linear regression, which is a least squares approximation, is given for an objective assessment. Ideally, the line should make with the X-axis an angle of 45 degree.

    Maximum Adverse Excursion (MAE) is the maximum potential loss reached while holding a position.

    MAE-Profit Correlation - a correlation between the position results and MAE. MAE - Maximum Adverse Excursion. Each trade reached its maximal profit and maximal loss between opening and closing. MAE shows the loss during the adverse excursion of the price. Each trade is corresponded with its return and with two parameters - MFE and MAE. Thus, we can plot each trade on a plane where MAE is plotted along the Х-axis, the return is plotted along the Y-axis. The closer is the return to the MAE, the more complete was the protection against the adverse excursion of the price. The straight on the graph shows approximation by function Profit=A*MAE+B. The Correlation(Profits,MAE) allows to estimate relation between the profits/losses and the MAE. The closer to 1 is this value, the better will the trades fit into the approximation straight. The closer to zero it is, the less considerable is this relation. MAE characterizes the drawdown obtained within the position lifetime and characterizes the use of protective Stop Loss best of all.

    Graph of MAE-Profits Distribution - Points plotted on the graph MAE (X-axis) - Profits (Y-axis) indicate positions. Values of both axes are given in the deposit currency. Thus, for each transaction we see not only the acquired profit value including swaps along the Y-axis, but also the maximal drawdown within the position lifetime. It allows us to estimate the transaction according to drawdown waiting out. Though the distribution of points along the chart gives a satisfactory view of the trade system, a linear regression, which is a least squares approximation, is given for an objective assessment. The less trades have negative values X (MAE), the better. It also allows making a decision based on the graphical analysis about maximally accepted losses, after which the possibility of taking profit is very small (if the analysis is carried out on the same currency pair and in points).

  2. In the visual tester implemented automatic addition of the used indicators to the charts of other symbol-periods.
  3. Fixed a bug when stopping visual testing of multicurrency Expert Advisors, which led to numerous messages "stopped by user" in the tester Journal.
  4. Fixed optimization crash when adding a new testing agent during optimization.

MetaEditor

  1. Enhanced MQL5 Storage control functions.

    Added new commands for managing the storage of source files that make the use of the MQL5 Storage even more convenient:

    Added new commands for managing the storage of source files

    • Update to revision - selected files are supplemented with information from the files in the specified revision. In files with identical names data are merged. If files have been added to a revision, they will be added to the local copy. If files have been deleted from a revision, they will be deleted from the local copy.
    • Revert to revision - selected files are replaced by the files from the specified revision. All changes made to the selected files disappear.

      Revert to revision

    • Compare with the working copy - files of a selected revision are compared with their current state on the local computer.
    • Compare with previous revision - compare the current and the previous revision of the files.
    • Compare two revisions - compare file changes in two specified revisions.

Fixed errors reported in crash logs.
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

11 April 2012
MetaTrader 5 Trading Terminal build 630

Trading Terminal

  1. Implemented skipping of graphical objects create by MQL5 programs when deleting objects using the Backspace key.

    Through the OBJPROP_HIDDEN property set only from MQL5 programs, graphical objects are divided into manually created and automatically created objects. By default, the list shows only the manually created objects to keep the window well organized. To see all objects, click "List All".

    Implemented skipping of graphical objects

    Now objects created by programs are not deleted by the command "Delete last (Backspace)".
    This prevents accidental removal of interface objects. They can be deleted programmatically or through the List of Objects (Ctrl + B) window.

  2. Added display of the beginning and end of symbol trading in the symbol settings dialog:

    Added display of the beginning and end of symbol trading in the symbol settings dialog

MQL5

  1. In the MQL5 language added support for operation overloading.

    Overloading of operations allows to describe operations with the meaning equivalent to those already existing in the language and apply them to the types of data created by the programmer. For example, overloading of operator "[]" allows you to implement a class with the behavior of an array. Overloading arithmetic operators allows to implement classes for working with complex numbers. In the above cases, overloading of operations allows to use of familiar syntax and avoid creation of numerous functions like ComplexPlusComplex, IntegerPlusComplex, ComplexMinusFloat, etc.

    In addition, support for operator overloading in MQL5 provides compatibility with general-purpose programming languages ​​(particularly with C++), facilitating the translation of previously written code (software libraries) into MQL5.

  2. In MQL5 added support for static fields and methods of classes and structures.

    Static fields and methods are the property of the class, so there is no need to create class instances to access its static fields. Use of static fields and methods in the language improves its flexibility and expressiveness. For example, using these methods you can easily implement control over the number of class instances (objects).

    Like with the support of operator overloading, support for operator overloading in MQL5 provides compatibility with general-purpose programming languages ​​(particularly with C++), facilitating the translation of previously written code (software libraries) into MQL5.

  3. Added a new property of the "Edit" graphical object - OBJPROP_ALIGN that denotes the alignment of text within the edit field. The property is set and read by methods ObjectSetInteger\ObjectGetInteger.
  4. Fixed the behavior of the ArrayIsDynamic function. When initializing a dynamic array with the initialization list, the ArrayIsDynamic function defined the array as static.
  5. Fixed an error in an implicit conversion of double to bool, which could lead to the error "invalid ex5".
  6. Updated the Standard Library - implemented minor bug fixes and improvements.

Strategy Tester

  1. Expanded the set of characteristics in testing results - added new features and diagrams:

    Expanded the set of characteristics in testing results

  2. Fixed loop of testing in the cases of absence of price history.
  3. Fixed refusal to modify pending orders approaching the order expiration time.

    Previously, if there were less than 5 minutes to the time of pending order deletion, an incorrect error TRADE_RETCODE_INVALID_EXPIRATION was returned at the attempt of correct order modification.

  4. Fixed generation of a negative spread when tested on open prices.
  5. Optimized transmission of testing results using the FrameAdd function.

    When you run an Expert Advisor in the strategy tester, you can create your own data array based on the simple types or simple structures. This data set can be saved using the FrameAdd() function in a special structure called a frame. During the optimization of an Expert Advisor, each agent can send a series of frames to the terminal. All the received frames are written in the file *.MQD in the folder terminal_directory/MQL5/Files/Tester expert named as the Expert Advisor. They are written in the order they are received from the agents.

    Optimize passing of frames from the tester to the client terminal and increased the speed of access to the frames received from the Expert Advisor at the entry points OnTesterPass.

  6. Fixed the context menu in the tabs of testing results.
  7. Fixed initialization of AccountInfo during optimization of strategies (the code exactly corresponds with a single test). This error could lead to the difference between the testing results and single tests with the same parameters.

MetaEditor

  1. Removed default highlighting the current line. In the previous versions, during the initial installation of MetaEditor highlighting of the current line was enabled by default.

    Removed default highlighting the current line

    Removed default highlighting the current line. In the previous versions, during the initial installation of MetaEditor highlighting of the current line was enabled by default

  2. In the MQL5 Wizard added support for the OnTester* entry points.

    In the MQL5 Wizard added support for the OnTester* entry points

    These entry points are handlers of events that are automatically generated by the strategy tester during testing (OnTester) and optimization (OnTesterInit, OnTesterPass, OnTesterDeinit) of Expert Advisors. Use of these functions in the EA allows to implement custom handling of testing and optimization results.

  3. Added snippets for the OnTester* entry points.

    For ease of writing code, MetaEditor provides the possibility to insert snippets — small template fragments of source code describing a particular construction of the MQL5 language. Insertion of a snippet is initialized by typing the keyword. After you type the keyword the cursor is changed to "Snippet available". To insert a snippet, you should press "Tab". For more information about working with snippets please read the MetaEditor Help.

    The keywords for the entry points OnTester, OnTesterInit, OnTesterPass and OnTesterDeinit are OnTester, OnTesterInit, OnTesterPass and OnTesterDeinit.

  4. Enhanced the features of MetaAssist for supporting operator overloading.

    For ease of programming, MetaEditor provides various tools from auto substitutions of names and tips to the functions to anchors and hot keys - MetaAssist. These tools allow you to speed up the process of code writing, make navigation easier and help prevent errors.

  5. Added the window displaying the differences between a source text local file and a version stored in MQL5 Storage:

    Added the window displaying the differences between a source text local file and a version stored in MQL5 Storage

    Added the window displaying the differences between a source text local file

  6. Fixed errors reported in crash logs.
    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

23 March 2012
MetaTrader 5 Trading Terminal build 619

Trading Terminal

  1. Added new display mode of volumes "Amount" for forex instruments in the Depth of Market. The new mode allows you to see requests in lots and in the quoted currency.

    Added new display mode of volumes Amount for forex instruments

  2. In the dialogs of properties of Bitmap and Bitmap Label, added tooltips to show long paths of image files.

MQL5

  1. Added new methods FrameAdd, FrameFirst, FrameNext and FrameInputs, allowing testing agents to pass their own custom data frames to the terminal and allowing the terminal to read them.

    With the new methods you can implement distributed computing to produce results in any convenient form, and not only in the form of one or more numeric values. By connecting to the MQL5 Cloud Network, you can solve any distributed tasks in MQL5, not necessarily, however, related to the financial markets.

  2. Added new entry points OnTesterInit, OnTesterDeinit and OnTesterPass. During the optimization of an Expert Advisor with these entry points, a chart to attach the EA to is created in the terminal. When a new data frame is received from testing agents, OnTesterPass is called, in which the received data can be read and analyzed. A detailed description is available in the documentation.

  3. Added new method ResourceCreate, which allows to create a resource of an image in the memory based on the array of the description of pixels. The created resource can be assigned to graphical objects Bitmap and Bitmap Label. A detailed description is available in the documentation.
  4. Added new properties TERMINAL_MEMORY_PHYSICAL, TERMINAL_MEMORY_TOTAL, TERMINAL_MEMORY_AVAILABLE, TERMINAL_MEMORY_USED, TERMINAL_X64, TERMINAL_OPENCL_SUPPORT, TERMINAL_DISK_SPACE, TERMINAL_CPU for TerminalInfoInteger.

    New features allow MQL5 programs to analyze the environment in which they run, and based on this make decisions about the use of various resources. These properties will be useful in complex Expert Advisors that require large amounts of resources. Now, during the optimization of such an Expert Advisor in the MQL5 Cloud Network, you can implement checks of available memory of an agent in the EA's OnInit, and in case of a potential shortage of memory not to start the testing process. Also, to make access to new properties easier, added the CTerminalInfo class. A detailed description is available in the documentation.

  5. Fixed optimizer error, which could result in incorrect calculations with floating point.
  6. Fixed the terminal crash error which occurred when using exceptions inside its own DLL in Windows Server 2008 R2 and Windows Server 2008.
  7. Standard Library. Added a new class CTerminalInfo for accessing the new properties of the Expert Advisor environment.
  8. Standard Library. Fixed an error of self-deletion of an indicator in the CAppDialog::CreateIndicator method.
  9. Standard Library. The BackGround method has been renamed to Background in control objects.

Strategy Tester

  1. Changed the operation of the testing method "on open prices". As before, OnTick of an Expert Advisor runs only at the opening of the bar, but instead of M1 OHLC ticks, high, low and close states the tested bar are used. Due to this, stops and pending orders may trigger at a price different from the stated one. This has led to a multiple acceleration of tests.
  2. Increased the total speed of optimization.
  3. The algorithm of checking restrictions on the aggregate positions volume now exactly matches that used on the server.
  4. Enabled checks for large values of tick volumes ​during generation. If the minute tick volume exceeds 2000, then tick simulation step increases proportionately. The accuracy of price modeling remains the same.

MetaEditor

  1. In the log of changes of the MQL5 Storage you now can revert changes to a certain revision.

    In the log of changes of the MQL5 Storage you now can revert changes to a certain revision

  2. Fixed an error in case-insensitive search in the Code Base and articles for the Russian language.
  3. In the Navigator, added the display of .h and .cpp files.
  4. Fixed errors reported on the forum and in crash logs.
    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

12345678910111213