xloc - Pine Script Constants
Overview
Section titled “Overview”Constants under the xloc namespace.
Constants
Section titled “Constants”| Name | Type | Description |
|---|---|---|
xloc.bar_index | const string | A constant that specifies how functions that create and modify Pine drawings interpret x-coordinates. If xloc = xloc.bar_index, the drawing object treats each x-coordinate as a bar_index value. |
xloc.bar_time | const string | A constant that specifies how functions that create and modify Pine drawings interpret x-coordinates. If xloc = xloc.bar_time, the drawing object treats each x-coordinate as a UNIX timestamp, expressed in milliseconds. |