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

Drawing / Reference

alerta.polyline.set_fill_color

TradingView-compatible spelling: polyline.set_fill_color, runs without warnings

Pine v6: sets the polyline interior fill color (applies when closed=true).

alerta.polyline.set_fill_color(id, fill_color) → void

Parameters

NameTypeRequiredDefaultDescription
idpolylineYes—Polyline handle.
fill_colorcolorYes—Fill color.

Returns

void

Example

alerta.polyline.set_fill_color
indicator("polyline.set_fill_color", overlay=true)if barstate.islast    points = array.from(chart.point.from_time(time[8], close[8]), chart.point.from_time(time[4], close[4]), chart.point.from_time(time[1], close[1]))    p = polyline.new(points, xloc=xloc.bar_time)    polyline.set_fill_color(p, color.new(color.blue, 75))

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.