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

Drawing / Reference

alerta.hline

TradingView-compatible spelling: hline, runs without warnings

Plots a horizontal line at a fixed price level.

alerta.hline(price, { title, color, linestyle, linewidth }) → void

Parameters

NameTypeRequiredDefaultDescription
pricefloatYes—Price level.
optionsobjectNot specified—Styling config.

Returns

void

Example

alerta.hline
hline(100.0, { color: "gray", linestyle: "dashed" })

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.