plot
Plots a series. Returns a plot handle for fill().
plot(series: float, title: const string = na, color: color = na, linewidth: const int = 1, style: const string = "line", display: const string = "all", offset: input int = 0, show_last: const int = na, trackprice: const bool = false, histbase: const float = 0, join: const bool = false, linestyle: const string = na, precision: const int = na, format: const string = na, editable: const bool = true, force_overlay: const bool = false) -> plot
Parameters
seriesfloat: The value to draw on each bar; na draws nothing on that bar.titleconst string: Its name in the legend and the settings.colorcolor: na uses the next color of the PROLYNT plot palettelinewidthconst int: Line width in pixels.styleconst string: plot.style_*displayconst string: display.none does not draw it; every other display.* value (default display.all) draws it.offsetinput int: shifts the plot by this many bars: positive moves it right (into the future), negative leftshow_lastconst int: draw only on the newest this many bars (na: all)trackpriceconst bool: Accepted for scripts from Pine and ignored: no price line is drawn at the last value.histbaseconst float: Accepted for scripts from Pine and ignored: histograms and columns start at 0.joinconst bool: Accepted for scripts from Pine and ignored: circles and crosses are not joined by a line.linestyleconst string: Accepted for scripts from Pine and ignored: plots draw solid lines; use hline or line.new for dashed lines.precisionconst int: Accepted for scripts from Pine and ignored: values show with the script precision (indicator precision=).formatconst string: Accepted for scripts from Pine and ignored: values show with the script format.editableconst bool: Accepted for scripts from Pine and ignored: it changes nothing on PROLYNT.force_overlayconst bool: Accepted for scripts from Pine and ignored: it draws in the script pane.
Example
plot(ta.sma(close, 20), "SMA", color=color.amber, linewidth=2)