Is it possible to display an industry index for a stock symbol?


#1

Hello everyone,

I've been using Telechart as my EOD data source for use with AB 6.20.1. Telechart's sector / industry classifications is based on the Morningstar / Hemscott system whereas AB's seems to use the Yahoo classification.

Is there a way to display an index representing the stocks in an AB category, eg Symbols -> Basic Industries -> Agricultural Chemicals? This industry consists of about 20 stocks, and it also includes the Morningstar industry index MG435. However this index is wrong, because it corresponds to the Morningstar industry classification Insurance Brokers. I would like to plot the stock's industry classification on the same chart as the stock itself.

Is this the best way to display industry indices? Should I manually modify the assignment for all the "MGxxx" tickers, so that the example above MG435 is correctly assigned to the correct AB category. If so, which one? Finance -> Life Insurance or -> Property Casualty Insurers or -> Speciality Insurers. I've read the manual which explain categories, including the section which explains how the symbol assignment is now automatic. However, these MGxxx symbols don't seem to be included. Which is strange because there seems to be a one-to-one MGxxx symbol assignment to each AB industry classification.

Another question. Is it still recommended to use Telechart as an EOD data source? They only provide a 32-bit API, which means I have to use 32-bit AB to make use of the TC2000 plugin for EOD charting, and 64-bit for RT charting, using the IB plugin. Would using another EOD data source solve my problem?


#2

@polomora I am not familiar with the Telechart sevice, but if you are interested in U.S. or Australian End-of-Day data feed for AmiBroker, I would strongly endorse Norgate Premium data.

The sector classification is automatically built in to the data feed and there are many many Index symbols that correspond to sectors so that you can easily plot the stock's industry as well as the stock. Below are a couple of example's of what automatically comes with your data (no work by the user to organize any of this).

image

And for exploration I have posted this before depending on what classification you are interested in,

Filter = 1;
AddColumn(SectorID(), "Sector number", 1.0);
AddTextColumn( SectorID( 1 ), "Sector name" );
AddTextColumn( GicsID( 0 ), "Gics Code");
AddTextColumn( GicsID( 1 ), "Gics Name");
AddColumn(IndustryID( 0 ), "Industry ID", 1.0);
AddTextColumn( IndustryID( 1 ), "Industry name" );

image


#3

Thanks portfoliobuilder for the reply.

I had seen your earlier post, when searching around the forum, looking for a solution.

Just a question about Norgate Premium data. Is the index assignment for a given stock also automatic? For example, the industry I gave in the original post, Basic Industries -> Agricultural Chemicals. The stock CF is included as part of this industry. If AB is currently displaying this stock, does the AFL
MGTicker = GetBaseIndex();
give the symbol for the correct index? I would like to superimpose the industry index for the currently displayed stocks on its chart.


#4

@polomora I do not think that information is included. I tried your line of code (new to me) and it did not return any value. In the "Information" tab for the stocks there is other info about the categories but no symbol included. The symbols are available in the appropriate "Sector" or "GICS" classification but it appears that you must determine the sector symbol on your own.

image

image


#5

A stock's classification can relate to multiple indexes, so just just providing one symbol is not ideal.

AmiBroker doesn't allow a "base index" to be assigned programmatically to Sectors/Industries so this led us to think about a more useful solution to the issue.

We have some soon-to-be-released features in this area for US and Australian stocks.

Here's a peek at the preliminary documentation:

Determining the Industry Index Symbol for the Current Security

If you would like to retrieve the industry index symbol for the current security (for instance, to find other stocks with the same industry classification), you can use the NorgateCurrentIndustryIndexSymbol function as follows:

indexsymbol = NorgateCurrentIndustryIndexSymbol("< index family >", < level > ,"< index type >");
where:
< index family > can be $SPX, $SP1500 (for US stocks) or $XJO or $XKO (Australian stocks)
< level > is an integer from 1 to 4 denoting the level of the index
< indextype > is either PR (price return) or TR (total return)

For example, to determine the S&P 1500 Level 4 (Sub-Industry) price return index applicable to the current symbol, you would use:
indexsymbol = NorgateCurrentIndustryIndexSymbol("$SP1500",4,"PR");
If the current symbol has no applicable classification or there is no industry index present at the given level, then indexsymbol in the example above will have no value.

Using the example of Walt Disney Co (NYSE:DIS),
for the parameters:

$SPX,1,PR you'd get $SPXD (i.e. S&P 500 Consumer Discretionary Sector Index)
$SPX,4,PR you'd get $SPXENTE (i.e. S&P 500 Movies & Entertainment SubIndustry Index)
$SP1500,1,PR you'd get $SP1500DTR (i.e. S&P 500 Consumer Discretionary Sector Index).
$SP1500,1,TR you'd get $SP1500DTR (i.e. S&P 500 Consumer Discretionary Sector Total Return Index).
$SP1500,4,PR you'd get $SP1500ENTE (i.e. S&P 1500 Movies & Entertainment SubIndustry Index)
$SP1500,4,TR you'd get $SP1500ENTETR (i.e. S&P 500 Movies & Entertainment SubIndustry Total Return Index).


#6

This feature, when implemented, sounds exactly what I'm looking for.
Do you have a comparison of features NorgateData vs Telechart?


#7

No - we don't directly compare or review competitors products. We will have a free trial capability for this new system, so you'll be able to try it for 3 weeks prior to purchasing a subscription.