Functions
array.unshift()
Inserts `value` at the beginning of the array. The existing elements move up one index.
Syntax
array.unshift(series array id, series <type of the array's elements> value) → void
Arguments
id required series array value required series Return Type
void Example
//@lipi=2
indicator("array.unshift Example", overlay=false)
values = array.from(2.0, 3.0)
array.unshift(values, 1.0)
// values is now 1.0, 2.0, 3.0
plot(array.get(values, 0), title="First Element", color=color.blue)