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

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) → float

Parameters

NameTypeRequiredDefaultDescription
idline handleYes—Target line handle.
xintYes—Target bar index.

Returns

float

Example

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.

AlertaScript

No results found.

Search by name, alias, or keyword.