array.standardize() - Pine Script Function
array.standardize()
Section titled “array.standardize()”Overview
Section titled “Overview”The function returns the array of standardized elements.
Syntax
Section titled “Syntax”array.standardize(id) → array<float>Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| id | array<int/float> | An array object. |
Returns
Section titled “Returns”The array of standardized elements.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”//@version=6indicator("array.standardize example")a = array.new_float(0)for i = 0 to 9array.push(a, close[i])b = array.standardize(a)plot(array.min(b))plot(array.max(b))