Skip to content
Algo Trade Analytics Docs
Pine library page — review pending. This page is preserved for compatibility but is not part of the reviewed search index. Check the official Pine Script v6 reference before relying on its explanation, signature, or example.

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))