array.abs() - Pine Script Function
array.abs()
Section titled “array.abs()”Overview
Section titled “Overview”Returns an array containing the absolute value of each element in the original array.
Syntax
Section titled “Syntax”array.abs(id) → array<float>Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| id | array<int/float> | An array object. |