There is an example in this document:
http://www.amibroker.org/3rdparty/IntroToAtc.pdf From: amibroker@yahoogroups.com [mailto:amibro...@yahoogroups.com] On Behalf Of Richard Sent: Thursday, October 01, 2009 12:06 PM To: amibroker@yahoogroups.com Subject: [amibroker] AddtoComposite Question ... can you make a composite of stocks in a "Watch List". I've tried but keep getting an error message. It works fine with Industry groups (see below) but error comes up with watch list.watch list 9 is one of SolarEnergy stocks. //sym = "~" + IndustryID(1); sym = "~" + watchlistID(9); AddToComposite( L, sym,"L",1+2+8+16); AddToComposite( O, sym,"O",1+2+8+16 ); AddToComposite( H, sym,"H",1+2+8+16 ); AddToComposite( C, sym,"C",1+2+8+16 ); AddToComposite( V, sym, "V",1+2+8+16); Dick H.