[amibroker] Re: Getting near the end

2008-07-27 Thread John Bollinger
--- In amibroker@yahoogroups.com, "John Bollinger" <[EMAIL PROTECTED]> wrote: > > Hello, > > I'd like to change a calculation as I get within n periods of the end > of an array in real time. Many thanks to all who replied. jab

[amibroker] Re: Getting near the end

2008-07-25 Thread monitorit
John, I'm not an afl expert, but think you will need to use a loop. Ex: Z=BarIndex()-LastValue(BarIndex())-n>0; for (i=0; i wrote: > > Hello, > > I'd like to change a calculation as I get within n periods of the end > of an array in real time. > > if (BarIndex() <= LastValue(BarIndex) - n) >