Hi
I think you want to use
inHirange= Ref(H,-9)>= HHV(H,9) ;
inLowrange= Ref(L,-9)<= LLV(L,9) ;

above compares the most recent 9 bars to the one preceeding

if you wanted to compare that one to the 8 following bars (and not 
include the most recent bar, it would be

inHirange= Ref(H,-9)>= ref(HHV(H,8),-1) ;
inLowrange= Ref(L,-9)<= ref(LLV(L,8),-1) ;

Think one of those should work
Dan



--- In [email protected], "sidhartha70" <sidharth...@...> 
wrote:
>
> Hi All,
> 
> This is probably easy... but I'm having a mental block.
> 
> I have an interval on a chart, lets say it's 10 intervals back. I 
want
> to check that each of the 8 intervals that followed it traded within
> the range of that interval 10 back.
> 
> I don't want to use a loop....
> 
> Any ideas...?
> 
> TIA
>


Reply via email to