Skip to content
Algo Trade Analytics Docs

chart.point.from_time() - Pine Script Function

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

chart.point.from_time(time, price) → chart.point
NameTypeDescription
timeseries intThe x-coordinate of the point
expressedas a UNIX time value
inmilliseconds.
  • The index field values of chart.point instances returned from this function will be na, meaning drawing objects with xloc values set to xloc.bar_index will not work with them.