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

Example

p = chart.point.new(time, bar_index, high)