How to load data on chart multi timeframe? error 4806

 

Hi,

How can I load data on chart multi timeframe?

I using indicator muti timeframe, problem is high timeframe not found data becuase no data on chart with error 4806  (allway)

 Indicators ERR_INDICATOR_DATA_NOT_FOUND 4806 Requested data not found

this happen all time on first time using EA

How I fix problem temporary, I just click on chart with each timeframe for data on chart load, then error message gone.


So, What solution I can fix it for all first time with no need to click load data each all timeframe for get data on chart load?

any command, function can help to apply load data all from M1 to W1, MN1

 
demoinvest Indicators ERR_INDICATOR_DATA_NOT_FOUND 4806 Requested data not found
Perhaps you should read the manual, especially the examples. They all (including iCustom) return a handle (an int.) You get that in OnInit. In OnTick you use the handle, shift and count to get the data.
          Technical Indicators - Reference on algorithmic/automated trading language for MetaTrader 5
          Timeseries and Indicators Access / CopyBuffer - Reference on algorithmic/automated trading language for MetaTrader 5

Creating an iMA indicator handle, getting indicator values.
          How to start with MQL5 - General - MQL5 programming forum - Page 3 #22 2020.03.08

Also see my example for encapsulating calls
          Detailed explanation of iCustom - MQL4 programming forum 2017.05.23

Reason: