|
Tomasz: thanks for the suggestion but I do not know how to
implement using the AddtoComposite over ALL symbols and have just the ones I
want appear in their own composites representing different
industries.
I have read and reread the help files, the pdf on ATCs and
have searched past messages on all sorts of terms and this just does not come
out where I understand it.
To scan over all symbols and use regular ATC just against
the symbols in each grouping (watchlist), I thought about this kind of code but
just do not believe it will work.
if
(InWatchList(11))
{ AddToComposite(C,"~Z01Aerospace_Defense","c"); AddToComposite(1,"~Z01Count","X"); } if(InWatchList(12)) { AddToComposite(C,"~Z02Automotive","c"); AddToComposite(1,"~Z02Count","X"); } etc....
Any other ideas on this approach?
Off to tackle jscript automation along lines suggested by
Dan.
Ken From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Tomasz Janeczko Sent: Wednesday, August 09, 2006 3:14 PM To: [email protected] Subject: Re: [amibroker] New Question on Watchlist Averages Hello,
You would need to check for Null values and/or use Nz (null to
zero) because of the fact
that if you don't have data for particular security Foreign()
will give you null values at the beginning of the array.
Personally I would advice using AddToComposite in a regular
way (scan over entire database).
This way you would arrive to correct results faster and with
less code. This is so because plain scan
with addtocomposite does not involve any loops therefore it is
fast even if larger number of symbols is
being analysed. Especially once your needs grow over time and
you will want to calculate averages
not only for few watchlists but also for some industry groups,
etc.
Best regards, Tomasz Janeczko amibroker.com __._,_.___ 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
SPONSORED LINKS
YAHOO! GROUPS LINKS
__,_._,___ |
- Re: [amibroker] New Question on Watchlist Averages dan_public
- RE: [amibroker] New Question on Watchlist Averages Ken Close
- Re: [amibroker] New Question on Watchlist Averages dan_public
