line.get_x2() - Pine Script Function
line.get_x2()
Section titled “line.get_x2()”Overview
Section titled “Overview”Returns UNIX time or bar index (depending on the last xloc value set) of the second point of the line.
Syntax
Section titled “Syntax”line.get_x2(id) → series intParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| id | series line | Line object. |
Returns
Section titled “Returns”UNIX timestamp (in milliseconds) or bar index.