PureBytes Links
Trading Reference Links
|
Thomas: thanks for pointing out my stupid error. Now if I could withdraw
my original email with the dumb mistake on it, I would.
I appreciate you pointing out my mistake.
Thanks,
Ken
_____
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf
Of Thomas Z.
Sent: Sunday, August 20, 2006 12:31 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] Question Abouty Industry Name
Hello Ken,
on a first view i see that you use sectorid for your indname, i assume you
mean industryid()
IndName = CategoryGetName(categoryIndustry,SectorID());<<<<<<<<<Gets
Industry Name 2nd way
Best Regards
Thomas
<http://www.tradingbasis.com/> www.tradingbasis.com
_____
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf
Of Ken Close
Sent: Sunday, August 20, 2006 6:24 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Question Abouty Industry Name
Can someone answer this question: I have an exploration in which I seek to
list Industry Names. I get two different answers depending on the command I
use for getting the industry names.
I want to use this in an Exploration of All Symbols (TC2005 db).
This code produces two different names for IndustryName.
Code:
AddTextColumn(FullName(),"FullName",1.0);
AddColumn(SectorID(),"SectorID",1.0);
AddTextColumn(SectorID(1),"SectorName1",1.0); <<<<<<<<<<<<<< Gets Industry
Name 1st Way
AddColumn(IndustryID(),"IndustryID",1.0);
AddTextColumn(IndustryID(1),"IndustryName1",1.0);
SecName = CategoryGetName(categorySector,SectorID());
IndName = CategoryGetName(categoryIndustry,SectorID());<<<<<<<<<Gets
Industry Name 2nd way
AddTextColumn(SecName,"Sector Name2",1.2);
AddTextColumn(IndName,"IndustryName2",1.0);
Results in the AA window (once sorted) show different Industry Names via the
"2nd" way.
Why?
Thanks for helping on this.
Ken
|