Tomasz,
I have read all this material and the problem is,everything is fragmented.There is no flow,no logic,no clear building blocks and it is exceddingly difficult to piece together the various scattered defintions and snippets of info.
At this point I am clueless as to what to do..I understand what ATC does regarding indicies.The code below,did exactly as i hoped,and created a candlestick chart of the sector,but there is no way the sum of the stocks in the sector equaled the value on the chart..The proce was way too low...
sym="~"+SectorID(1);
AddToComposite
(L,sym,"L");AddToComposite
(O,sym,"O");AddToComposite
(H,sym,"H");AddToComposite
(C,sym,"C");AddToComposite
(V,sym,"V");Buy=Sell=Short=Cover=
0;Filter=
1;------------------------------------------------------------------------------------------------
I also tried the code with the counter,and that worked as well,but i only got a close only chart.maybe I wasnt clear as to my intentions.I did want to set up my database in the sector/industry/stock format,which you helped me do.But just as important,i want to be able to chart the sector and the industry,as well as get values for them..Do I do that in groups????
I also tried the code with the counter,and that worked as well,but i only got a close only chart.maybe I wasnt clear as to my intentions.I did want to set up my database in the sector/industry/stock format,which you helped me do.But just as important,i want to be able to chart the sector and the industry,as well as get values for them..Do I do that in groups????
This is verrrrry confusing,and needlessly so..
---------------------------------------------------------------------------------------------------
/* AddToComposite statements are for Automatic Analysis -> Scan */
/* add Close price to our index OHLC fields */
AddToComposite(Close, "~MyIndex", "X" );
/* add one to open intest field (we use this field as a counter) */
AddToComposite( 1, "~MyIndex", "I" );
buy = 0; // required by scan mode
/* this part is for Indicator */
graph0 = Foreign( "~MyIndex", "C" )/Foreign( "~MyIndex", "I" );
----- Original Message -----
From: Tomasz Janeczko <[EMAIL PROTECTED]>
Date: Tuesday, September 12, 2006 10:00 am
Subject: Re: [amibroker] ATC,Sectors and Industries
To: [email protected]
> Hello,
>
> Everything about categories you will find in this tutorial (part
> of User's Guide):
>
> http://www.amibroker.com/guide/h_categories.html
>
> If you are using Quotes Plus sectors/industries are set up
> automatically if you do "Retrieve" in File->Database Settings-
> >Configure
>
> Groups are INDEPENDENT in AMiBRoker from sectors/industries.
> Groups are for markign whenever given symbol is a STOCK, MUTUAL
> FUND, FUTURE or COMPOSITE (group 253).
>
> If you want your composite to appear in specific industry use
>
> CategoryAddSymbol( symbol, categoryIndustry, IndustryID() );
>
> As for what composites do, please read:
> http://www.amibroker.com/guide/a_addtocomposite.html
>
> and
> http://www.amibroker.net/3rdparty/IntroToAtc.pdf
>
> which answers all questions asked in your e-mail.
>
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message -----
> From: "matrix10014" <[EMAIL PROTECTED]>
> To:
> Sent: Tuesday, September 12, 2006 1:26 PM
> Subject: [amibroker] ATC,Sectors and Industries
>
>
> > Hi All,
> >
> > Would appreciate a little assistance with ATC..i am an ex AIQ
> > user,and one of the excellent features was the ability to
> easily set
> > up a Sector/Industry/Stock relationship.
> >
> > As an example,you could
> > set up your data structure in a manner in which you could
> click on
> > the sector,and the industries within that sector would "pop
> up",and
> > if you clicked on one of the industries,you could drill down
> and see
> > the stocks that comprise the industry....
> >
> > I applied the code
> >
> > sym="~"+SectorID(1);
> > AddToComposite(L,sym,"L");
> > AddToComposite(O,sym,"O");
> > AddToComposite(H,sym,"H");
> > AddToComposite(C,sym,"C");
> > AddToComposite(V,sym,"V");
> > Buy=Sell=Short=Cover=0;
> > Filter=1;
> >
> > And had instant sectors which was really nice.If I want to now
> > create the industries,would I use the exact same code but
> replace
> > +SectorID(1) with +IndustryID(1) ??
> >
> > If the answer is yes,would the newly created industies
> automatically
> > go into the same group253???? How could I link the industries
> to
> > the sectors??? I would not want 200 some odd industries in
> some
> > random order,mixed in with the sectors.
> >
> > One last thing...Should I rerun the entire history in Scan
> each and
> > every time???
> >
> > Thanks in advance
> >
> > Allan
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > 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
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
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 |
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
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
__,_._,___
