Lipi Reference
Lipi

Functions

line.get_x2()

Returns the second point's x-coordinate.

Syntax

                line.get_x2(series line id) → series int
              

Arguments

id required series line Drawing object to modify or query.

Return Type

series int

Example


          //@lipi=2
indicator("line.get_x2 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_x2(l))