Lipi Reference
Lipi

Functions

array.push()

Appends `value` to the end of the array, growing it by one element.

Syntax

                array.push(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.push Example", overlay=false)
static array<float> closes = array.new_float(0)
array.push(closes, close)
plot(array.length(closes), title="Elements Pushed", color=color.blue)