How to referrence first 4hr bars for every new day ?

 
How would i reference the details of the first bars for a new day on a 4hour charts ?

eg. i wanted to get the hi and low of the first 3 bars every new day, i really dont know how i would go about doing this ?

Thanks
 
try
code]TimeDay(Time[1]) != TimeDay(Time[0])[[/code]
 
cszoli - thanks for your response

Would i use it something like this ?


Open[TimeDay(Time[1])]

 
not really!

try this.

//Check for 4Hr timeframe
if (Period() != PERIOD_H4){
    Alert("Attach ONLY 4Hr timeframe! EXIT...");
    return(0);
}

if (TimeDay(Time[1]) != TimeDay(Time[0])){
    //you can use open[0], as the new day open value...
    Alert(Open[0]);//for example show the open value for that day
}
 
Thanks !

Thats just what i was looking for =)
Reason: