Accessing price data (close,volume, etc) of different timeframes (D1,H1,etc)

 

Hello guys,


I am pretty much a beginner in both coding in mql5 and using this forum. I would greatly appreciate if you could help me with my question.I am writing a costume indicator. It plot a line on daily chart but needs the close prices of M1 bars to calculate its daily values. How can I access price data from different timeframes than the one I am working with?


Thanks guys.

Nima

Reason: