Can anyone answer this Question for me >??

 
int limit;
     int counted_bars=IndicatorCounted();

     //---- check for possible errors
     if(counted_bars<0) return(-1);
     //---- last counted bar will be recounted
     if(counted_bars>0) counted_bars--;
     limit=Bars-counted_bars;
     
     //---- main loop 
     
     for(int shift= limit-1; shift >=1; shift--)
     {
     int D1_bar = iBarShift(NULL, PERIOD_H1, Time[shift]);
How can i get the close price of each of the four 15 miniute bars within my D1 bar ???
 
gavin:
How can i get the close price of each of the four 15 miniute bars within my D1 bar ???
I assume four 15 minute bars within your H1 bar.
int M15_bar3 = iBarShift(NULL, PERIOD_M15, Time[shift]); double M15_Close3 = iClose(NULL, PERIOD_M15, M15_bar3);
int M15_bar2 = M15_bar3 + 1...
:

 
gavin:
How can i get the close price of each of the four 15 miniute bars within my D1 bar ???

Is it D1 (daily) or H1 (hourly)?

int D1_bar = iBarShift(NULL, PERIOD_H1, Time[shift]); <----- you want D1, or you want H1?
 
diostar:

Is it D1 (daily) or H1 (hourly)?


Hi, i am looking for the close price of the four 15 minite bars within the one hour bar!! Sorry about the misleading labeling..
Reason: