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

Drawing / Reference

alerta.plotbar

TradingView-compatible spelling: plotbar, runs without warnings

Plots OHLC bars (ticks on open/close). Pine's positional order after close is `title, color, editable, show_last, display, format, precision, force_overlay`.

alerta.plotbar(open, high, low, close, { color, offset, pane }) | plotbar(open, high, low, close, title, color, …) → 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, editable, show_last, display, format, precision, force_overlay (plus `offset` and `pane`).

Returns

void

Example

alerta.plotbar
plotbar(open, high, low, close, { color: "#ef4444" })

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.