line.get_price
Price of the line (extended as a straight line) at x.
line.get_price(id: line, x: int/float) -> float
Parameters
idline: The line's handle (from line.new); na or a deleted line gives na.xint/float: Where to read the line, in the line's own x (A bar index (bar_index), or a UTC ms time when the drawing uses xloc.bar_time.) The line is extended as a straight line past its points.
Example
p = l.get_price(bar_index)