[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: General query about cumulating values for indicators



PureBytes Links

Trading Reference Links

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 amibroker@xxxxxxxxxxxxxxx, "sidhartha70" <sidhartha70@xxx> 
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 amibroker@xxxxxxxxxxxxxxx, "Mike" <sfclimbers@> wrote:
> >
> > Read thread #122034 for a similar discussion, including 
explanation. 
> > 
> > Mike
> > 
> > --- In amibroker@xxxxxxxxxxxxxxx, "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
> > >
> >
>



------------------------------------

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/