found this simple code to detect open range at a certain time rang. Tried to use it as screener but i cant get the correct results. it would be prefferable to screen when a bar close over the hh or below ll range. starttime = 070000 endtime = 100000 if intradaybarindex=0 then hh = 0 ll = 0 endif if time>=starttime and time<=endtime then if high>hh then hh = high endif if low<ll or ll=0 then ll = low endif endif XSignal= 0 IF close => hh THEN XSignal = 1 ELSIF close =< ll THEN XSignal = 2 ENDIF // SCREENER[XSignal](XSignal AS "1=↑,2=↓")