Get Price for a specific time

 

hello

I'm looking for a way to retrieve the price for s specific time or timeframe.

For example, the price, M1, between 4pm and 4:20pm on january 4th ?

 

Anyway to do that ?

 

Thanks

Nicolas 

 
datetime when = ...;
int  iWhenM1 = iBarShift(NULL, PERIOD_M1, when)
double hiWhen = iHigh(Null, PERIOD_M1, iWhenM1);
 
William Roeder #:

Great and elegant solution.