sign
- returns the sign of the number/array

Math functions
(AmiBroker 4.50)


SYNTAX sign( x )
RETURNS ARRAY or NUMBER
FUNCTION Sign function returns 1 if x value is greater than zero, -1 if the x is less than zero and 0 if x equals zero. x can be a number or array.
EXAMPLE
SEE ALSO

References:

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

More information:

See updated/extended version on-line.