Graham,
I don’t use TC2000 anymore, but I
recall that the industries and sectors, and their mapping to a stock can be
retrieved when creating the database. I.e., retrieving them sets the
symbol to industry/sector mapping automatically. You don’t have to set
the symbols.
I just tested this by creating a new
TC2000 DB in AB and then pointed it at the TC2005 plugin (my old TC installation
is still there). Then I retrieved the symbols, and the Sector/Industry
mappings. It worked fine, and the code below retrieved the Industry symbol
correct.
Are you referring to something different?
Regards,
Dan.
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Graham
Sent: Saturday, October 08, 2005
10:10 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker]
Extracting MG Industry Group Closing Price
assuming you have set the
index symbols for the industries in Symbol-Category
On 10/9/05, Dan Clark
<dan_public@xxxxxxxxxxx> wrote:
>
>
> HI,
>
>
>
> Try:
>
>
>
> IndustrySymbol = GetBaseIndex() ;
>
>
>
> Then you can use Foreign, SetForeign,
PlotForeign, etc.
>
>
>
> From here it's pretty easy to get the Sector
Symbol also. In TC2005, the
> Sector Symbol can be generated by replacing
the last digit of an Industry
> Symbol with a zero ("0"). So,
the Sector Symbol for MG747 is MG740.
>
>
>
> Regards,
>
>
>
> Dan.
>
>
> ________________________________
>
>
> From: amibroker@xxxxxxxxxxxxxxx
[mailto:amibroker@xxxxxxxxxxxxxxx]
On Behalf
> Of quirinus
> Sent: Saturday, October 08, 2005 9:19 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Extracting MG Industry
Group Closing Price
>
>
>
> Hi,
>
> I use TC2000 for end of day data.
Basically what I would like to do
> is to be able to pull up the closing price of
a stock's Industry
> Group Average.
>
> For example - American Eagle Outfitter (AEOS)
is part of the
> Specialty Retail - Apparel Stores Industry
Group (MG747).
>
> I'm trying to implement a simple Industry
Group Relative Strength
> graph while looking at a stock - so that as I
go through stocks the
> graph will automatically pick up the
appropriate MG Industry Group
> and plot the stock's Relative Strength.
>
> So, if I'm looking at AEOS, my formula will
pick up MG747 close and
> graph the Relative Strength of AEOS vs MG747.
>
> When I move on to another stock, the formula
should pick up the
> appropriate MG Group close automatically.
>
> I just need to pick up the closing price of
the MG Industry Group
> based on the stock I'm looking at.
>
> I've tried using
>
> MG_Close = Foreign(IndustryID(1),"Close");
>
> but that doesn't seem to work.
>
> Would someone be please kind enough to help
me figure this out.
>
> Thanks
>
>
>
>
>
>
> 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
>
> Visit your group "amibroker"
on the web.
>
> To unsubscribe from this group, send an
email to:
> amibroker-unsubscribe@xxxxxxxxxxxxxxx
>
> Your use of Yahoo! Groups is subject to
the Yahoo! Terms of Service.
> To unsubscribe from this group, send an
email to:
> amibroker-unsubscribe@xxxxxxxxxxxxxxx
>
> Your use of Yahoo! Groups is subject to
the Yahoo! Terms of Service.
> Your use of Yahoo! Groups is subject to
the Yahoo! Terms of Service.
> ________________________________
>
>
>
--
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
YAHOO! GROUPS LINKS