tn = TimeNum();
btime = Param ( "Time", 100000, 090000, 240000, 500 );
breakout = Cross(tn,btime); //timenum()
NewDay = Day()!= Ref(Day(), -1);
HDay = HighestSince(newday,H,1);
Lday =LowestSince(newday,L,1);
Plot(HDay,"H",colorred,styeline+stylenorescale);
Plot(LDay,"L",colorgreen,styeline+stylenorescale);