Buy = Sum(Low < Ref(Low, -1), 3) == 3;
Mike
--- In amibroker@xxxxxxxxx ps.com, jim fenster <normanjade@ ...> wrote:
>
>
> If I wanted to buy for example when you make three lower lows. How do I write this without doing it the long way? You know like Buy= ref(l,-1)<ref( l,-2) etc. Im not lazy or anything. Im just trying to learn the language. Whats the way to loop something like this?
>
> Thanks,
> Jim
>