How to switch the TimeFrame in MQL?

 
Hi,

would be helpful if there was a possibility to get the OHLC from a bar, which is on an other timeframe.
for example:
i need the open from yesterday. so i need the historybars of the Day-Timeframe.
would be great if one can determine the timeframe to use, and the type of info one needs like (high, low, close, open)
the function highest() can do that.. but its not possible to find the original open of yesterday, nor the close...
 
 
Thanks=) a LOT=)
Reason: