MQL4 Reference Timeseries and Indicators Access RefreshRates
RefreshRatesRefreshing of data in pre-defined variables and series arrays.
Parameters None. Returned value True if the data updated, otherwise false. Note This function is used when Expert Advisor has been calculating for a long time and needs data refreshing. Returns true if data are refreshed, otherwise returns false. The only reason for data cannot be refreshed is that they are the current data of the client terminal. Expert Advisors and scripts operate with their own copy of history data. Data of the current symbol are copied at the first launch of the expert or script. At each subsequent launch of the expert (remember that script is executed only once and does not depend on incoming ticks), the initial copy will be updated. One or more new ticks can income while the Expert Advisor or script is operating, and data can become out of date. Example:
|