IsEmpty
- empty value check

Miscellaneous functions
(AmiBroker 3.50)


SYNTAX IsEmpty( ARRAY )
RETURNS ARRAY
FUNCTION returns 1 (or 'true') when given point in array is {empty}
Note: {empty} value is used internaly by AFL to mark
bars when the value is not available - for example for the first
20 bars the value of 20-day simple moving average is not available
({empty})

IsNull is a synonym for IsEmpty. It is suggested to use IsNull in new formulas, because of naming consistency with Null constant.

EXAMPLE movagv = ma( close, 30 );
WriteIF( IsEmpty( movavg ), "Moving average not available yet", WriteVal( movavg ) );
SEE ALSO ISEMPTY() function , ISNAN() function , ISNULL() function , ISTRUE() function

References:

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

More information:

See updated/extended version on-line.