Functions
line.get_x1()
Returns the first point's x-coordinate.
Syntax
line.get_x1(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_x1 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_x1(l))