Plot calls can list their arguments in order

2026-12-02 · Charts · Fixed

Some scripts wrote a plotshape call with the title, shape, place and colour in order, with no names. The chart did not read them. It drew a thin line at the bottom of the pane, with a value of 0 or 1, in place of small triangles on the bars with a signal.

The chart now reads each argument by its name or by its place in the call. This is true for plot, plotshape, bgcolor, hline and fill. If you give an argument a name, the name is used. Marks, lines, levels and backgrounds now look the same whichever way the call is written.

A plotshape call with no title now draws its marks too. Before, it drew nothing. A mark placed with location.absolute sits at the value of the series, and a bar with no value has no mark. This works on the price chart and in a separate pane.