Arrays / Reference
alerta.array.new_color
TradingView-compatible spelling: array.new_color, runs without warnings
Creates a new color array.
alerta.array.new_color(size?, initialValue?) → Array<color>Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
size | int | Not specified | — | Optional initial size. |
initialValue | color | Not specified | — | Optional initial color. |
Returns
Array<color>Example
alerta.array.new_color
arr = array.new_color(1, color.new(color.green, 50))Names and aliases
Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.