close price

 

hello everyone, i have 5 min bar which divided into 5 bars of 1 min, how can i get the close price of all one of that bars of 1 min 

 
Ahmed Elsayed:

hello everyone, i have 5 min bar which divided into 5 bars of 1 min, how can i get the close price of all one of that bars of 1 min 

iClose(Symbol(),1,1)

double  iClose(
   const string        symbol,          // Symbol
   ENUM_TIMEFRAMES     timeframe,       // Period
   int                 shift            // Shift
   );