> Actually, I just noticed there's a new function called BarIndex() Sorry, just realised this is not a new function (got confused by the red star in the help) and that according to the help, it may not be accurate if QuickAFL is on. So if using that, I think you might need:
bi = BarIndex(); s5 = IIf(bi-bi[0] >= BarCount-14, MA(Close, 5), Null); GP
