Arrays / Reference
alerta.array.unshift
TradingView-compatible spelling: array.unshift, runs without warnings
Prepends value to array.
alerta.array.unshift(id, value) → voidParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
id | Array | Yes | — | Array handle. |
value | any | Yes | — | Value to prepend. |
Returns
voidExample
alerta.array.unshift
arr = array.new_float(0)array.unshift(arr, close)Names and aliases
Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.