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

Drawing / Reference

alerta.plotarrow

TradingView-compatible spelling: plotarrow, runs without warnings

Plots up/down arrows based on signed series values. Pine's positional order after the series is `title, colorup, colordown, offset, minheight, maxheight, editable, show_last, display, force_overlay` — `title` comes FIRST, as it does across the whole plot family.

alerta.plotarrow(series, { colorup, colordown, minheight, maxheight, offset, pane }) | plotarrow(series, title, colorup, colordown, …) → void

Parameters

NameTypeRequiredDefaultDescription
seriesseries floatYes—Positive values draw up arrows, negative values draw down arrows.
optionsobjectNot specified—Arrow styling options, in Pine's positional order: title, colorup, colordown, offset, minheight, maxheight, editable, show_last, display, force_overlay.

Returns

void

Example

alerta.plotarrow
sig = close - openplotarrow(sig, { colorup: "#22c55e", colordown: "#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.