Functions
line.set_xy1()
Sets a line's first endpoint (x1, y1).
Syntax
line.set_xy1(series line id, series int x1, series float y1) → void
Arguments
id required series line Drawing object to modify or query. x1 required series int X-coordinate of the first line point. y1 required series float Y-coordinate of the first line point. Return Type
void Example
//@lipi=2
indicator("line.set_xy1 Example", overlay=true)
if barstate.islast {
l = line.new(bar_index[10], high[10], bar_index, high, color=color.red)
line.set_xy1(l, bar_index[10], high[10])
}