Skip to content
Algo Trade Analytics Docs

array - Pine Script Type

Keyword used to explicitly declare the “array” type of a variable or a parameter. Array objects (or IDs) can be created with the array.new, array.from function.

  • Array objects are always of “series” form.
//@version=6indicator("array", overlay=true)array<float> a = naa := array.new<float>(1, close)plot(array.get(a, 0))