Drawing / Reference
alerta.linefill.set_color
TradingView-compatible spelling: linefill.set_color, runs without warnings
Updates linefill color.
alerta.linefill.set_color(id, color) → voidParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
id | linefill handle | Yes | — | Linefill handle. |
color | string | Yes | — | New fill color. |
Returns
voidExample
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.