Drawing / Reference
alerta.line.get_price
TradingView-compatible spelling: line.get_price, runs without warnings
Returns interpolated price of a line at a target bar index.
alerta.line.get_price(id, x) → floatParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
id | line handle | Yes | — | Target line handle. |
x | int | Yes | — | Target bar index. |
Returns
floatExample
alerta.line.get_price
ln = line.new(bar_index - 5, low, bar_index, high)p = line.get_price(ln, bar_index)plot(p)Names and aliases
Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.