Skip to content
AlertaChartAlertaScript / docs
AlertaScript / alerta.color
On this pageSignatureParametersReturnsExample

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 color

Parameters

NameTypeRequiredDefaultDescription
valueanyYes—Value to cast.

Returns

color or series color

Example

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.

AlertaScript

No results found.

Search by name, alias, or keyword.