MetaTrader 5 build 1880: calculation of the complete history of synthetic symbols
Added calculation of the price history of synthetic symbols for the entire available data depth
6 July 2018
Added calculation of the price history of synthetic symbols for the entire available data depth.
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.
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
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
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.
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.