Lipi Reference
Lipi

Functions

line.get_y1()

Returns the first point's y-coordinate.

Syntax

                line.get_y1(series line id) → series float
              

Arguments

id required series line Drawing object to modify or query.

Return Type

series float

Example


          //@lipi=2
indicator("line.get_y1 Example", overlay=true)
static line l = line(na)
if barstate.islast {
    l := line.new(bar_index[10], high[10], bar_index, high, color=color.red)
}
plot(na(l) ? na : line.get_y1(l))