Skip to content
Algo Trade Analytics Docs

line.set_extend() - Pine Script Function

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.

line.set_extend(id, extend) → void
NameTypeDescription
idseries lineLine object.