|
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
__,_._,___ |
- [amibroker] New Question on Watchlist Averages Ken Close
- Re: [amibroker] New Question on Watchlist Averages Tomasz Janeczko
- Re: [amibroker] New Question on Watchlist Averages dan_public
- Re: [amibroker] New Question on Watchlist Averages dan_public
