For the most Highest price N seconds, who can help me?

 
int iHighest(int end=TimeCurrent()-sec ,int start=TimeCurrent())
  {
     *** 
     return(Highest);
}
 

 for loop iHigh() or MathMax()

Reason: