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

To add comments, please log in or register
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.

On Recent updates Metatrader 5 allow us to create custom symbols (Synthetic Instruments Formula )

I ve already created USDX and EURX myself but GBPX and JPX are little tricky I guess Since I dont have any programing background could some one tell me how to rewrite the formulas accordingly on MT5 Thanks


50.14348112 × EURUSD-0.576 × USDJPY0.136 × GBPUSD-0.119 × USDCAD0.091 × USDSEK0.042 × USDCHF0.036



GBPX = 46.2807334033003 x EURGBP-0.3134 x GBPUSD0.2274 x GBPJPY0.0479 x GBPCHF0.0439 x (GBPUSD*USDSEK)0.0252


JPX:  [¥80,000 – (81.15USD/JPY × $123) – (108.63EUR/JPY × €92) – (63.13NZD/JPY x NZ$ 158) – (82.95AUD/JPY × AU$121)] / Divisor

choose Divisor = 80000. Then added 100 to the formula.


To add comments, please log in or register