line - Pine Script Type
Overview
Section titled “Overview”Keyword used to explicitly declare the “line” type of a variable or a parameter. Line objects (or IDs) can be created with the line.new function.
Remarks
Section titled “Remarks”- Line objects are always of “series” form.
Example
Section titled “Example”//@version=6indicator("line")// Empty `line1` line ID.var line line1 = na// `line` type is unnecessary because `line.new()` returns "line" type.var line2 = line.new(na, na, na, na)line3 = line.new(bar_index - 1, high, bar_index, high, extend = extend.right)