InGICS
- test GICS membership

Information / Categories
(AFL 3.40)


SYNTAX InGICS( "gics_code" )
RETURNS NUMBER (0 or 1)
FUNCTION The function performs yes/no test if current symbol belongs to given GICS category for example if GICS set for the symbol is 15103020 InGics("15"), InGICS("1510"), InGics("151030") and InGics("15103020") will ALL return true but all others (like InGics("20")) will return false.
EXAMPLE printf( "GICS(0) = " + GicsID( 0 ) );
printf( "GICS(1) = " + GicsID( 1 ) );
printf( "GICS(2) = " + GicsID( 2 ) );

for( i = 10; i < 90; i+= 1 )
{
 gics_code =
StrFormat("%02.0f", i );
 printf("In Gics '"+ gics_code + "' = %g\n", InGics( gics_code ) );
}
SEE ALSO GicsID() function , InWatchList() function , InWatchListName() function

References:

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

More information:

Updated on-line reference