Active 9 Hours

 
Hi all,

Any ideas to go about finding which 9 hours range got the highest high and the lowest low of the day for consecutive x number of days

example
i need to find the 9 hour range of the day with the max high and min low and collect and compare over a few days data for a normalize value
like period between 4am - 1pm...
 
doshur wrote >>
Hi all,

Any ideas to go about finding which 9 hours range got the highest high and the lowest low of the day for consecutive x number of days


High[iHighest....)]
Low[iLowest..)]
is the idea. the definition you find here https://docs.mql4.com/series
 
but how do i get the most active 9 hours range of which have the highest and lowest?
 
double range.max=0;
for (int shift=9; shift >=0; shift--) {
   double range=High[shift]-low[shift];
   if (range>range.max) int shift.tallest=shift;
}
 

WHRoeder
wrote
>>


  how can i do this to find the best performing 9 hours range for maybe the consecutive 10 days?
I need to get a normalize value
 
doshur wrote >>


how can i do this to find the best performing 9 hours range for maybe the consecutive 10 days?
I need to get a normalize value


High[iHighest....)]
Low[iLowest..)]

Loop over 9 days (9 days*24 hours) and rember the best performing range ...
Reason: