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

Drawing / Reference

alerta.linefill.set_color

TradingView-compatible spelling: linefill.set_color, runs without warnings

Updates linefill color.

alerta.linefill.set_color(id, color) → void

Parameters

NameTypeRequiredDefaultDescription
idlinefill handleYes—Linefill handle.
colorstringYes—New fill color.

Returns

void

Example

alerta.linefill.set_color
l1 = line.new(bar_index - 10, low[10], bar_index, low)l2 = line.new(bar_index - 10, high[10], bar_index, high)lf = linefill.new(l1, l2, "rgba(239,68,68,0.15)")linefill.set_color(lf, "rgba(34,197,94,0.15)")

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.