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

[amibroker] Finding Industry Ticker for Stock Using TC2005 Data



PureBytes Links

Trading Reference Links

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




------------------------ 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/