ABS Function
- ABS( <value> )
Calculates the absolute value of a number.
| Function Parameters | |
|---|---|
| Parameter | Description |
| <value> | The value to compute (e.g. CLOSE, HIGH, (H+L+C)/3, etc.) |
- |Examples:
ABS(5.8) Evaluates to 5.8 ABS(-5.8) Evaluates to 5.8
desktop:desktop_chart_scripting_function_reference_abs_value
Calculates the absolute value of a number.
| Function Parameters | |
|---|---|
| Parameter | Description |
| <value> | The value to compute (e.g. CLOSE, HIGH, (H+L+C)/3, etc.) |
ABS(5.8) Evaluates to 5.8 ABS(-5.8) Evaluates to 5.8