InICB
- test ICB membership

Information / Categories
(AmiBroker 5.60)


SYNTAX InICB(''icb_code'')
RETURNS NUMBER (0 or 1)
FUNCTION The function performs yes/no test if current symbol belongs to given ICB category for example if ICB set for the symbol is 9537, InICB("9000"), InICB("9500"), InICB("9530") and InICB("9537") will ALL return true but all others (like InICB("5000")) will return false.
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 InICB function is used in the following formulas in AFL on-line library:

More information:

See updated/extended version on-line.