PureBytes Links
Trading Reference Links
|
SYNTAX AddToComposite( array, ''ticker'', ''field'', flags =
atcFlagDefaults )
RETURNS NOTHING
FUNCTION Allows you to create composite indicators with ease. More info...
Parameters:
array - the array of values to be added to "field" in "ticker" composite symbol
"ticker" - the ticker of composite symbol. It is advised to use ~comp
(tilde at the beginning)
newly added composites are assigned to group 253 by default and
have "use only local database" feature switched on for proper
operation with external sources possible field codes: "C" - close ,
"O" - open, "H" - high, "L" - low, "V" - volume, "I" - open interest,
"X" - updates all OHLC fields at once
--
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/23/06, John Nelson <trader@xxxxxxxxxxxxxxx> wrote:
>
> 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
>
> Visit your group "amibroker" on the web.
>
> To unsubscribe from this group, send an email to:
> amibroker-unsubscribe@xxxxxxxxxxxxxxx
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>
> ________________________________
>
>
> ________________________________
>
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/
|