array.join() - Pine Script Function
array.join()
Section titled “array.join()”Overview
Section titled “Overview”The function creates and returns a new string by concatenating all the elements of an array, separated by the specified separator string.
Syntax
Section titled “Syntax”array.join(id, separator) → series stringParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| id | array<int/float/string> | An array object. |
Examples
Section titled “Examples”Example 1
Section titled “Example 1”//@version=6indicator("array.join example")a = array.new_float(5, 5)label.new(bar_index, close, array.join(a, ","))