Read thread #122034 for a similar discussion, including explanation. Mike
--- In [email protected], "sidhartha70" <[EMAIL PROTECTED]> 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 >
