Skip to content
Algo Trade Analytics Docs

line.get_x2() - Pine Script Function

Returns UNIX time or bar index (depending on the last xloc value set) of the second point of the line.

line.get_x2(id) → series int
NameTypeDescription
idseries lineLine object.

UNIX timestamp (in milliseconds) or bar index.