Utilities / Reference
alerta.color
TradingView-compatible spelling: color, runs without warnings
Casts value to color representation (hex/rgba string).
alerta.color(value) → color or series colorParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
value | any | Yes | — | Value to cast. |
Returns
color or series colorExample
alerta.color
c = color("#00ff99")plot(close, { color: c })Names and aliases
Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.