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 }) → voidParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
price | float | Yes | — | Price level. |
options | object | Not specified | — | Styling config. |
Returns
voidExample
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.