Thanks again, Mike - this is of great help as I wasn't even aware of the STATUS function. Just perfect. Thanks!
--- In amibroker@yahoogroups.com, "Mike" <sfclimb...@...> wrote: > > Buy = Status("firstbarinrange"); > Sell = Status("lastbarinrange"); // vs. BarsSince(Buy) >= ...; > > http://www.amibroker.com/guide/afl/afl_view.php?id=141 > http://www.amibroker.com/guide/afl/afl_view.php?name=barssince > > Mike