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

Re: [amibroker] Re: Exploring and charting industry groups...



PureBytes Links

Trading Reference Links

Tony,

Excellent idea! But I would like to persist the average in each composite
symbol, not recalculate it every time I need it. Apparently, I can't save
the values back out to the composite (modifying the values only seems to
impact internal memory).

Check out the following code...

	AddColumn(C, "Before Close");

	CC = C * 3;

	AddToComposite(CC, Name(), "C", atcFlagDeleteValues + 2 + 8 + 16);
	AddColumn(CC, "After Close");

Oddly, the composite (as saved in the database) does not change.

Can't delete composites. Can't modify them after they're created.

Or I'm missing something?

-- John


> John,
>
> Add the number 1 to the OI field in each composite
> for each security added into the composite.  You will then
> have a running count of the # of securities to use as a divisor.
>
> Regards,
>
> Tony





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 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/

<*> 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/