Nope, you're not alone.

The topic pops up, in one form or another, every couple of weeks or 
so. Sounds like you understand the concept now.

Good luck.

Mike

--- In [email protected], "sidhartha70" <[EMAIL PROTECTED]> 
wrote:
>
> Thanks Mike.
> 
> So it seems I'm not the only one coming from more 'traditional'
> languages to struggle with this concept.
> 
> The bottom line it seems is that you cannot recursively alter the
> value of any array by referencing other values of that array... at
> least not directly.
> 
> 
> --- In [email protected], "Mike" <sfclimbers@> wrote:
> >
> > Read thread #122034 for a similar discussion, including 
explanation. 
> > 
> > Mike
> > 
> > --- In [email protected], "sidhartha70" <sidhartha70@> 
> > wrote:
> > >
> > > Hi All,
> > > 
> > > Can someone clear this up for me... I am simply trying to 
cumulate 
> > the
> > > value of an array. My intial thoughts were to do something like 
the
> > > following,
> > > 
> > > Value1=0;
> > > Value2=log(Close);
> > > Value1=Ref(Value1,-1)+Value2;
> > > 
> > > However, that doesn't seem to work... So I've ended up with,
> > > 
> > > Value2=log(Close);
> > > Value1=Cum(Value2);
> > > 
> > > Which does seem to work. I can't see why the first doesn't.
> > > 
> > > Can anyone explain...? Thanks
> > >
> >
>


Reply via email to