Allan,
I use the code below
to create Sector and Industry composites from Quotes Plus. When you run
as SCAN, all of the composites will be created in Group
254.
Donald F
Lindberg
---------------------------------
Begin Code
----------------------------------
_SECTION_BEGIN("Sector and Industry
Composites");
Buy=Sell=Short=Cover=0;
Scan =
Status("Action")==3;
if(Scan) {
inc =
1;
sym1 =
"~Industry - " +
IndustryID(1);
AddToComposite( inc * L, sym1,"L",1+2+4+8+16+128);
AddToComposite( inc * O, sym1,"O",1+2+4+8+16+128);
AddToComposite( inc * H, sym1,"H",1+2+4+8+16+128);
AddToComposite( inc * C, sym1,"C",1+2+4+8+16+128);
AddToComposite( inc * V, sym1,"V",1+2+4+8+16+128);
sym1 =
"~Sector - " +
SectorID(1);
AddToComposite( inc * L, sym1,"L",1+2+4+8+16+128);
AddToComposite( inc * O, sym1,"O",1+2+4+8+16+128);
AddToComposite( inc * H, sym1,"H",1+2+4+8+16+128);
AddToComposite( inc * C, sym1,"C",1+2+4+8+16+128);
AddToComposite( inc * V, sym1,"V",1+2+4+8+16+128);
}
_SECTION_END();
--------------------
End Code ---------------------
From:
amibroker@xxxxxxxxxps.com
[mailto:amibroker@yahoogroups.com] On Behalf Of matrix10014
Sent: Friday, December 28, 2007 3:05
PM
To:
amibroker@xxxxxxxxxps.com
Subject: [amibroker] Charting ATC
sectors
Hi
all,
Looking for a bit of help.I am attempting to use ATC so I can
chart the
Industry and Sub Industries form Quotes Plus.I know I have to
use
ATC,but I am clearly doing something wrong as I am creating
watchlists
that are blank..Tomaz instructed me to read pg 15 in the ATC
manual
which is what I did and it isnt working..Isnt there a simple way
of
running ATC and having the 10 sectors and 150 subsectors created so
you
can chart them and see
volume?
Thanks
Allan