Have a look at Cum http://www.amibroker.com/guide/afl/afl_view.php?id=35
and Sum http://www.amibroker.com/guide/afl/afl_view.php?id=151 Graham gives a nice explanation in the user notes. Mike --- In [email protected], "Soham" <soham...@...> wrote: > > Hi guys, > > Although I am familiar with AFL but strangely finding myself not able > to get my work done. > > I am having a requirement to: > > 1. Count the number of days,Close is above [or below] the bollinger band > 2. And count the number of days for which it has trended in the same > direction. > > I would additionally love to see, a standard histogram of trending days. > > Can you help me out? > > > Soham >
