Way to "sense" sector and industry

Does any one know a way to tell the sector or industry of a stock in a way that can be used in rankings or other filtering like buy/sell rules?
If there isn’t one I am going to put a feature suggestion for functions InSector(“SecName”) and InIndustry(“IndName”) to return boolean.
I would use these functions to build sims and portfolios of a selected sector or industry or to exclude certain sectors and industries from a portfolio.
Vlad

Vlad,

I have developed many Sims using a Buy Rule like:
Sector = HEALTH
or: Sector != BASICM

Also you can string them like:
Sector = HEALTH or Sector = TECHNO

Denny :sunglasses:

Thanks Denny!
I tried to look and I do not know how I did not see them. May be I only looked in Stock Factors and they are not rankable factors but ones you can use in functions. So I should have looked in Stock Functions. I see them now.
Excellent! Thanks.
I will see REOPER can serve wel me for the REIT’s list too.
Vlad

One thing I can do for my REITs experiments is set my own custom list. Though it won’t be adjusted for changes historically.
Vlad