[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

Graham,

Actually, the symbol name as retrieved by Name() *is* my composite since I use the Filter option in AA to Scan and process the composites. Maybe I can't update a composite that is the current symbol?

-- John


On Apr 22, 2006, at 2:19 AM, Graham wrote:

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


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