chart.point.from_index() - Pine Script Function
chart.point.from_index()
Section titled “chart.point.from_index()”Overview
Section titled “Overview”Returns a chart.point object with index as its x-coordinate and price as its y-coordinate.
Syntax
Section titled “Syntax”chart.point.from_index(index, price) → chart.pointParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| index | series int | The x-coordinate of the point |
| expressed | — | as a bar index value. |
Remarks
Section titled “Remarks”- The time field values of chart.point instances returned from this function will be na, meaning drawing objects with xloc values set to xloc.bar_time will not work with them.