Skip to content
Algo Trade Analytics Docs
Pine library page — review pending. This page is preserved for compatibility but is not part of the reviewed search index. Check the official Pine Script v6 reference before relying on its explanation, signature, or example.

box.get_right() - Pine Script Function

Returns the bar index or the UNIX time (depending on the last value used for ‘xloc’) of the right border of the box.

box.get_right(id) → series int
NameTypeDescription
idseries boxA box object.

A bar index or a UNIX timestamp (in milliseconds).