chart.point.new() - Pine Script Function
chart.point.new()
Section titled “chart.point.new()”Overview
Section titled “Overview”Creates a new chart.point object with the specified time, index, and price.
Syntax
Section titled “Syntax”chart.point.new(time, index, price) → chart.pointParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| time | series int | The x-coordinate of the point |
| expressed | — | as a UNIX time value |
| in | — | milliseconds. |
Remarks
Section titled “Remarks”- Whether a drawing object uses a point’s time or index field as an x-coordinate depends on the xloc type used in the function call that returned the drawing.