Download MetaTrader 5

New MetaTrader 5 platform build 1880: Calculation of the complete history of synthetic symbols

To add comments, please log in or register
MetaQuotes Software Corp.
Moderator
196485
MetaQuotes Software Corp.  

New MetaTrader 5 platform build 1880: Calculation of the complete history of synthetic symbols

The updated version of the MetaTrader 5 platform will be released on July 6, 2018. The new version features the following changes:

  1. Terminal: Added calculation of the price history of synthetic symbols for the entire available data depth.

    The platform calculates the history of one-minute bars based on minute bars of instruments as applied in its formula. Previously, the history was only calculated for the last two months. A deeper history could be created upon an explicit request (when scrolling the chart to the left or calling Copy functions). Now, the history is calculated using all available data unconditionally.




    Each symbol used in the synthetic formula can have price history of different depth. Synthetic history calculation is performed for the shortest available period. For example, the formula uses three financial instruments:

    • EURUSD with the history down to 2009.01.01
    • USDJPY with the history down to 2012.06.01
    • EURJPY with the history down to 2014.06.01

    In this case, the history of the synthetic symbol will be calculated for a period from 2014.06.01 to the present. 100 minutes will be additionally discarded from this date, to ensure the calculation integrity (if any minute bar is not available in history, a previous minute bar is used in the calculation).

    If deep history of used symbols is available, the synthetic symbol history calculation can take quite a long time. To enable immediate synthetic symbol chart view, the history for the last two months is calculated first (similarly to calculations in previous versions). Calculation of an earlier history begins after that.

  2. MQL5: New property ACCOUNT_CURRENCY_DIGITS — the number of decimal places in the account deposit currency. Use the AccountInfoInteger function to get the property. You may use the property when calculating profit on your own, to normalize the values ​​obtained.
  3. MQL5: Fixed delay in the execution of Copy functions and i-functions during operations with the weekly timeframe.
  4. MQL5: Fixed operation of the WebRequest function.
  5. Tester: Added ability to perform a single Expert Advisor test after downloading optimization results from a cache file.
  6. Tester: The new version features a faster initial download of price history by local agents.
  7. Documentation has been updated.
The update will be available through the Live Update system.
MarkJoy
115
MarkJoy  
  1. Each symbol used in the synthetic formula can have price history of different depth. Synthetic history calculation is performed for the shortest available period. For example, the formula uses three financial instruments:

    • EURUSD with the history down to 2009.01.01
    • USDJPY with the history down to 2012.06.01
    • EURJPY with the history down to 2014.06.01

    In this case, the history of the synthetic symbol will be calculated for a period from 2014.06.01 to the present. 100 minutes will be additionally discarded from this date, to ensure the calculation integrity (if any minute bar is not available in history, a previous minute bar is used in the calculation).

This is not true. I can only see history bars for the last 12 months when scrolling the chart to the left.

I created EURUSD_cust which take EURUSD as it's formula. No matter how I scroll the mouse, maximum history bars that I get is 12 months

MarkJoy
115
MarkJoy  

Create custom Symbols, add them to market watch, then restart MT5. Every custom symbol in market watch causes an increasing of 13% CPU load.

Work around: remove custom symbols from market watch, then re-add the custom symbols. This step need to be done every time MT5 is started if you wish to use custom symbols without increasing 13% CPU load per custom symbol

CustomSymbols - vs - CPU Load

To add comments, please log in or register