Functions
chartPoint.new()
Builds a chart point with all three of its fields given: a time, a bar index and a price. All three arguments are required. Use one of the narrower constructors where you have only two of the three.
Syntax
chartPoint.new(series int time, series int index, series float price) → series chartPoint
Arguments
time required series int The x-coordinate of the point, expressed as a bar index value. index required series int The x-coordinate of the point, expressed as a bar index value. price required series float The y-coordinate of the point. Return Type
series chartPoint Example
//@lipi=2
indicator("chartPoint.new Example", overlay=true)
if barstate.islast {
p = chartPoint.new(time, bar_index, close)
}