line.set_extend() - Pine Script Function
line.set_extend()
Section titled “line.set_extend()”Overview
Section titled “Overview”Sets extending type of this line object. If extend=extend.none, draws segment starting at point (x1, y1) and ending at point (x2, y2). If extend is equal to extend.right or extend.left, draws a ray starting at point (x1, y1) or (x2, y2), respectively. If extend=extend.both, draws a straight line that goes through these points.
Syntax
Section titled “Syntax”line.set_extend(id, extend) → voidParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| id | series line | Line object. |