Skip to main content
Use a plot for a series with a value on every bar that you want drawn as a line, histogram or area: an average, an oscillator. A plot call stands at the top level and its look (width, style, title) is fixed for the run. Use a drawing for everything else: marks on some bars, text built from data, levels or zones that follow data, anything created in a condition or a loop.

The refused forms

The messages for most rows are on other pages: a plot in a condition on Plotting, a title from data on const, input, simple and series, a computed hline price and a fill of a plot with a level on Fills and levels. A mark whose shape or size depends on the data:
The compiler says: Cannot call plotshape with argument size=close>open?size.small:size.large. An argument of series size type was used but a input size is expected.

What to use instead

Text from data, and a zone, as drawings. Both may sit inside a condition:
A drawing is not a series: it has no value on each bar, cannot be read back by other code as a series and counts against the limits on Lines, labels, boxes and polylines.