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

Drawing / Reference

alerta.plotcandle

TradingView-compatible spelling: plotcandle, runs without warnings

Plots custom candlesticks from OHLC series. Pine's positional order after close is `title, color, wickcolor, editable, show_last, bordercolor, display, format, precision, force_overlay` — `title` comes first and `bordercolor` sits AFTER show_last, not next to wickcolor.

alerta.plotcandle(open, high, low, close, { color, wickcolor, bordercolor, offset, pane }) | plotcandle(open, high, low, close, title, color, wickcolor, …) → void

Parameters

NameTypeRequiredDefaultDescription
openseries floatYes—Open series.
highseries floatYes—High series.
lowseries floatYes—Low series.
closeseries floatYes—Close series.
optionsobjectNot specified—In Pine's positional order: title, color, wickcolor, editable, show_last, bordercolor, display, format, precision, force_overlay (plus `offset` and `pane`).

Returns

void

Example

alerta.plotcandle
plotcandle(open, high, low, close, { color: "#22c55e", wickcolor: "#16a34a", bordercolor: "#16a34a" })

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.