NullCount
- count consecutive Null values

Miscellaneous functions
(AmiBroker 5.90)


SYNTAX NullCount( array, mode = 1 )
RETURNS NUMBER
FUNCTION Counts the number of consecutive nulls at the beginning of the array (mode = 1), at the end of the array (mode=2), from both ends (mode=3) and all nulls in the array (including non-consecutive) (mode=0)
EXAMPLE x = MA( C, 20 );
printf("Empty values at the beginning = " + NullCount( x ) );
SEE ALSO

References:

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

More information:

See updated/extended version on-line.