SectorID
- get sector ID / name

Information / Categories
(AmiBroker 3.80)


SYNTAX SectorID( mode = 0 )
RETURNS NUMBER/STRING
FUNCTION Retrieves current stock sector ID/name When mode = 0 (the default value ) this function returns numerical sector ID (consecutive sector number)
When mode = 1 this function returns name of the sector.
EXAMPLE Filter = SectorID() == 7 OR SectorID() == 9;
AddTextColumn( SectorID( 1 ), "Sector name" );
SEE ALSO  

References:

The SectorID function is used in the following formulas in AFL on-line library:

More information:

See updated/extended version on-line.