Skip to content
Algo Trade Analytics Docs

chart.point.from_index() - Pine Script Function

Returns a chart.point object with index as its x-coordinate and price as its y-coordinate.

chart.point.from_index(index, price) → chart.point
NameTypeDescription
indexseries intThe x-coordinate of the point
expressedas a bar index value.
  • 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.