chart.point.new
A chart.point: a place on the chart for drawings (line.new, box.new, label.new, polyline.new). Its fields are time, index and price; a drawing reads index or time by its xloc.
chart.point.new(time: int, index: int, price: float) -> @chart.point
Parameters
timeint: UTC ms time of the point; na when only the index is knownindexint: bar index of the point; na when only the time is knownpricefloat: the price (y) of the point
Example
p = chart.point.new(time, bar_index, high)