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

RE: [amibroker] Extracting MG Industry Group Closing Price



PureBytes Links

Trading Reference Links

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