[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Charting ATC sectors



PureBytes Links

Trading Reference Links

Maybe this will help, I use this one for what you are asking.  If i recall someone was kind enough to post this and something close to it is in that PDF TJ mentioned.  Once you get a handle on the ATC function it can do some really neat stuff (ie market indicators,composites, etc..) and much of it is covered in the PDF.
 
/////////////////////////////////////////////////////////////////////////////////////
Filter=1;
AdvVol = IIf(C>Ref(C,-1),V,0); //Advancing Volume
DecVol = IIf(C<Ref(C,-1),V,0); //Declining Volume
AdvIssue = IIf(C>Ref(C,-1),1,0); //Advancing Issues
DecIssue = IIf(C<Ref(C,-1),1,0); //Declining Issues
Buy=Sell=Short=Cover=0;
Scan = Status("Action")==3;
if(Scan) {
inc = 1;
// Create Sector composities
sym1 = "~S:" + 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);
 
sym2 = "~S:" + "A/D" + sym1;
AddToComposite( AdvVol, sym2,"O",1+2+4+8+16+128);
AddToComposite( DecVol, sym2,"C",1+2+4+8+16+128);
AddToComposite( AdvIssue, sym2,"H",1+2+4+8+16+128);
AddToComposite( DecIssue, sym2,"L",1+2+4+8+16+128);
AddToComposite( 1, sym2,"V",1+2+4+8+16+128);
// Create Industry composites
sym3 = "~I:" + IndustryID(1);
AddToComposite( inc * L, sym3,"L",1+2+4+8+16+128);
AddToComposite( inc * O, sym3,"O",1+2+4+8+16+128);
AddToComposite( inc * H, sym3,"H",1+2+4+8+16+128);
AddToComposite( inc * C, sym3,"C",1+2+4+8+16+128);
AddToComposite( inc * V, sym3,"V",1+2+4+8+16+128);
 
sym4 = "~I:" + "A/D" + sym3;
AddToComposite( AdvVol, sym4,"O",1+2+4+8+16+128);
AddToComposite( DecVol, sym4,"C",1+2+4+8+16+128);
AddToComposite( AdvIssue, sym4,"H",1+2+4+8+16+128);
AddToComposite( DecIssue, sym4,"L",1+2+4+8+16+128) ;
AddToComposite( 1, sym4,"V",1+2+4+8+16+128);
}

if( scan)
{
   CategoryAddSymbol( "~S:"+SectorID(1), categoryWatchlist, 11 );
   CategoryAddSymbol( "~S:"+"A/D"+sym1, categoryWatchlist, 12 );
   CategoryAddSymbol( "~I:"+IndustryID(1), categoryWatchlist, 13 ); 
   CategoryAddSymbol( "~I:"+"A/D"+sym3, categoryWatchlist, 14 );

}
 

----- Original Message ----
From: matrix10014 <allansn@xxxxxxxxxxxxx>
To: amibroker@xxxxxxxxxxxxxxx
Sent: Friday, December 28, 2007 6:04:50 PM
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




Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. __._,_.___

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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___