array.new_float

A new array<float> with `size` elements, all set to initial_value (default na). Keep it in a var to grow it across bars; a plain variable gets a new array on every bar.

array.new_float(size: int = 0, initial_value: float = na) -> array<float>

Parameters

Example

var prices = array.new_float(0)