_SECTION_BEGIN("avg_range");
bi=BarIndex();Avgrange=Sum((*H*-*L*),20); Avgrange/=20; Plot( IIf(bi<LastValue(bi)-21,*Null*, Avgrange),"avg range of 20 last bar",*colorAqua * ); _SECTION_END(); On Mon, May 17, 2010 at 5:50 AM, possum51au <[email protected]> wrote: > > > Hi > I want to create an average of the last 20 bars Hi-Lo ranges - could some > kind soul please help? > Thanks > > >
