Lists every polyline the script keeps on the chart, bounded by max_polylines_count.
Loop over it to inspect or delete paths in bulk, including polylines whose variables are out of scope. Its size never passes max_polylines_count.
Taking an item out of the array does not remove the drawing; call polyline.delete() for that.
Type
array<polyline>
Example
//@version=6
indicator("polyline.all: path count", overlay = false)
ph = ta.pivothigh(high, 5, 5)
if not na(ph)
polyline.new(array.from(chart.point.from_index(bar_index - 5, ph), chart.point.now(close)), line_color = color.red)
plot(array.size(polyline.all), "Polylines drawn")See also
Runs on Sidechair