If you just want the highest and lowest values then just use the HHV and LLV functions directly:
LLL = LLV(Low, 24); HHH = HHV(High, 24); Tuzo --- In [email protected], "dingl2008" <lasallewashing...@...> wrote: > > Hi, guru's, > > I'd like to get highest and lowest value during last 24 bars. But the code > below is not working properly. Anyone can see what's wrong with the code? > thanks and happy new year! > > ... > LLL = ValueWhen(L==LLV(Low, 24),Low,1); > HHH = ValueWhen(H==HHV(High, 24),High,1); > ... > > > D >
