Functions
array.length()
Returns the number of elements in the array.
Syntax
array.length(series array id) → series int
Arguments
id required series array Return Type
series int Example
//@lipi=2
indicator("array.length Example", overlay=false)
static array<float> highs = array.new_float(0)
if high > high[1] {
array.push(highs, high)
}
plot(array.length(highs), title="Higher Highs So Far", color=color.blue)