Checking Information From Different Timeframes

 

Hi there,

I've moved over to programming MQL5 after several years with MQL4. In the past, if I wanted to process information from other timeframes than the chart hosting the indicator, I would likely use the iHigh/iLow/iClose/iOpen functions specifying the target timeframes as an argument to the function calls.

I'm aware MT5 handles candle information differently to MT4. If the information I look for using the above functions has not been previously loaded into MT5, what happens and how should this be handled?

Thanks.

 
Geester: I would likely use the iHigh/iLow/iClose/iOpen functions specifying the target timeframes as an argument to the function calls.

So use them. What's the problem?

Perhaps you should read the manual. Timeseries and Indicators Access - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
   How To Ask Questions The Smart Way. (2004)
      How To Interpret Answers.
         RTFM and STFW: How To Tell You've Seriously Screwed Up.

 
From my original question:- "If the information I look for using the above functions has not been previously loaded into MT5, what happens and how should this be handled?"