Skip to content
Algo Trade Analytics Docs

array.join() - Pine Script Function

The function creates and returns a new string by concatenating all the elements of an array, separated by the specified separator string.

array.join(id, separator) → series string
NameTypeDescription
idarray<int/float/string>An array object.
//@version=6
indicator("array.join example")
a = array.new_float(5, 5)
label.new(bar_index, close, array.join(a, ","))