English

How to get high of a certain time period

 bxchen: How to get high of a certain time periodI want to get the high for e.g time of my forex brokerfrom 00:00:00 to 00:02:00I want get the iHighest for the time period of 00:00:00 to 00:02:00 for TodayHow do I achieve it , sorry for asking and thanks for helping ! Get the starting/ending times.Get the starting/ending bar indexGet the high for the range.learn to code and the available functions ``` #define HR2400 (PERIOD_D1 * 60)  // 86400 = 24 * 3600 int      TimeOfDay(datetime when=0){      if(when == 0)  when = TimeCurrent();                                           return( when % HR2400 );            } datetime DateOfDay(datetime when=0){      if(when == 0)  when = TimeCurrent();                                           return( when - TimeOfDay(when) );   } //datetime Tomorrow( datetime when=0){      if(when == 0)  when = TimeCurrent(); //                                          return(DateOfDay(when) + HR2400);   } //datetime Yesterday(datetime when=0){      if(when == 0)  when = TimeCurrent(); //   int iD1 = iBarShift(NULL, PERIOD_D1, DateOfDay(when) - 1); //                                       return( iTime(NULL, PERIOD_D1, iD1) ); } #define HR0000 0 #define HR0002 (2*60)  // 00:02:00 datetime bod=DateOfDay(); int iM1Bod = iBarShift(NULL, PERIOD_M1, bod + HR0000); int iM102  = iBarShift(NULL, PERIOD_M1, bod + HT0002 -1); // [0:00 - 0:02) int iM1HH  = iHighest( NULL, PERIOD_M1, iM102 - iM1Bod + 1, iM1Bod); double M1HH= iHigh(NULL, PERIOD_M1, iM1HH);```