AbsValue

AbsValue ( double value );

Description

Returns the absolute value of an argument. If the argument is positive, the argument is returned. If the argument is negative, the negation of the argument is returned.

Input parameters

Parameter Default value Description
value - Defines argument whose absolute value is returned.

Example

declare lower;
plot Absolute = AbsValue(open - close);

The example plots the absolute value of difference between the open and close price which can be either positive, or negative.