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

[amibroker] General query about cumulating values for indicators



PureBytes Links

Trading Reference Links

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/