PureBytes Links
Trading Reference Links
|
I don't think you can do this via AFL code, because the industry name and
number is not the same as the MGxxx ticker which represents the industry
group average. But, I explained how this can be done today in an earlier
post - just look back through today's messages.
Steve
----- Original Message -----
From: "dweilmuenster95125" <dweilmuenster95125@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Saturday, July 09, 2005 6:28 PM
Subject: [amibroker] Finding Industry Ticker for Stock Using TC2005 Data
> Hi,
>
> I'm trying to write AFL to determine the ticker for the Industry Group
> Average for an arbitrary common stock. The database that I'm using is
> imported from TC2005 by the plug-in. The Industry Group Averages are
> stored automatically in Group 4 by the plug-in.
>
> The following formula definitely does not work:
>
> indtkr = StrExtract(CategoryGetSymbols(categoryGroup,4),IndustryID(0));
>
> because IndustryID(0) returns a number that is wholly unrelated to the
> sorting sequence of the symbols in the list returned by
> CategoryGetSymbols. For example, "Gold" is number 17 in that list (0
> based index), but IndustryID(0) = 151 for NEM, definitely a Gold stock.
>
> Any suggestions?
>
> Thanks,
> David
>
>
>
>
>
> 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
>
>
>
>
>
>
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Try Online Currency Trading with GFT. Free 50K Demo. Trade
24 Hours. Commission-Free.
http://us.click.yahoo.com/DldnlA/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~->
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
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|