box.get_right() - Pine Script Function
box.get_right()
Section titled “box.get_right()”Overview
Section titled “Overview”Returns the bar index or the UNIX time (depending on the last value used for ‘xloc’) of the right border of the box.
Syntax
Section titled “Syntax”box.get_right(id) → series intParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| id | series box | A box object. |
Returns
Section titled “Returns”A bar index or a UNIX timestamp (in milliseconds).