change the flags in the addtocomposite statement

flag 2 restricts from using the group 253 for crteating the composite
so change fro default to 5

On 17/08/06, Ken Close <[EMAIL PROTECTED]> wrote:
Such a basic question, but I need to ask.
 
Surely it is possible to Scan and create composites from a watchlist of composites. Yes?
 
I have been 45 minutes trying all sorts of variations of setting a Filter to a Watchlist of industry composites.  Inspecting each in the Quote Editor shows values in all the relevant fields.  I can plot graphs from the data in each composite.
 
So I then create an ATC to read these composites and calculate a Percentage of the Watchlist meeting some condition.
 
I can't get the composite of the composites created.
 
When I run the ATC against a Watchlist of stock symbols, it creates the composite.
 
Suggestions please.
 
Thanks,
 
Ken
 
Here is some simple test code: works on stock symbols, does not work with WL of composites.
 

Filter

=1;

Buy

=1;

Price =

C/;

E21 =

EMA(Price,21 );

PC01 =

IIf(Price > E21,1 ,0);//<<<<<< C Field

AddToComposite

(PC01, "~SCORE3 ", "V");



--
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 __._,_.___

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
Software support Small business finance Business finance online
Business finance training Business finance course


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to