I think that will only work in version 5.3 Sid.

BarIndex() changed from being the actual index in 5.2, to always starting at 0 
in 5.3.
So LastValue(BarIndex()) in 5.2 can give you a number greater than BarCount 
under QuickAFL.

You could just use BB_Array[BarCount-1] which will always work.

Jules.


--- In [email protected], "Rob" <sidharth...@...> wrote:
>
> Sure... if BBand is the array you want to change,
> 
> Last_Val_BI = LastValue( BarIndex());
> BB_Array [Last_Val_BI] = New value here...
> 
> try something like that.
> 
> --- In [email protected], "mbausys" <mbausys@> wrote:
> >
> > Hi all,
> > 
> > Is there a simple way of changing the last value of an array?
> > I want to find Bollinger Band of, e.g. 10 days of closing prices, but would 
> > like to use a different value for day 10 rather than the real closing price 
> > for that day.
> > 
> > Any help would be appreciated.
> > 
> > Many thanks,
> > 
> > Marius
> >
>


Reply via email to