Skip to content
Algo Trade Analytics Docs

array.standardize() - Pine Script Function

The function returns the array of standardized elements.

array.standardize(id) → array<float>
NameTypeDescription
idarray<int/float>An array object.

The array of standardized elements.

//@version=6
indicator("array.standardize example")
a = array.new_float(0)
for i = 0 to 9
array.push(a, close[i])b = array.standardize(a)
plot(array.min(b))
plot(array.max(b))