[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

You are trying to write the composite over the top of your main symbol data
try this
AddToComposite(CC, "~"+Name(), "C", atcFlagDeleteValues + 2 + 8 + 16);


--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_write.htm


On 4/22/06, trader@xxxxxxxxxxxxxxx <trader@xxxxxxxxxxxxxxx> wrote:
> 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.&nbsp; 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
>
>
>
>
>
>
>


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/