IcbID
- get ICB category information

Information / Categories
(AmiBroker 5.60)


SYNTAX IcbID( mode )
RETURNS STRING
FUNCTION The function gets information about current symbol ICB category.
  • mode = 0 - returns string containing ICB code alone (such as "9530")
  • mode = 1 - returns string containing ICB category name (such as "Software & Computer Services")
  • mode = 2 - returns string containing both code and name (such as "9530 Software & Computer Services")
EXAMPLE printf( "ICB(0) = " + IcbID( 0 ) );
printf( "ICB(1) = " + IcbID( 1 ) );
printf( "ICB(2) = " + IcbID( 2 ) );

for( i = 10; i < 90; i+= 1 )
{
 ICB_code =
StrFormat("%02.0f", i );
 printf("In ICB '"+ ICB_code + "' = %gn", InIcb( ICB_code ) );
}
SEE ALSO InICB() function

References:

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

More information:

See updated/extended version on-line.