Drawing
A script draws with line.new, label.new, box.new, table.new, polyline.new, and linefill.new. The sidebar lists every name in those groups.
plot, plotshape, plotchar, hline, fill, bgcolor, and barcolor draw a series on the chart. Their pages are under Plots.
A line in the future#
A line, label, box, or polyline can take xloc = xloc.bar_time and a time that has not arrived yet. A band across the full height of the pane is bgcolor, not a box with a made-up top and bottom. See Future dates.
Drawings the app adds#
A connected app can also draw on the chart with the drawing tools, which are separate from these script calls. Those tools start at Draw on the chart.