Types
polyline
A multi-point drawing built from an array of chart.point values. Unlike line, a polyline can have any number of vertices and optional curve/fill.
Example
//@lipi=2
indicator("Polyline Type Example", overlay=true)
if barstate.islast {
pts = array.new<chartPoint>(0)
array.push(pts, chartPoint.from_index(bar_index[20], low[20]))
array.push(pts, chartPoint.from_index(bar_index[10], high[10]))
array.push(pts, chartPoint.from_index(bar_index, close))
polyline.new(pts, line_color=color.orange, line_width=2)
}