MetaTrader 5 Trading Terminal build 722

O que há de novo na MetaTrader 5?

16 novembro 2012

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_campaign=www.metatrader5.com