Types
plotStyle
The fourteen ways `plot` can draw a series: `line`, `linebr`, `area`, `areabr`, `smoothedArea`, `stepLine`, `stepLinebr`, `stepArea`, `stepAreabr`, `bar`, `histogram`, `scatter`, `triangular` and `cross`. Name a member with the set in front of it, as in `plotStyle.histogram`. The `br` endings are published as members of their own, distinct from the plain forms.
Fields / Members
line A named constant for the 'Line' style, to be used as an argument for the style parameter in the plot function. linebr A named constant for the 'Line With Breaks' style, to be used as an argument for the style parameter in the plot function. Similar to plot.style_line, except the gaps in the data are not filled. area A named constant for the 'Area' style, to be used as an argument for the style parameter in the plot function. areabr A named constant for the 'Area With Breaks' style, to be used as an argument for the style parameter in the plot function. Similar to plot.style_area, except the gaps in the data are not filled. smoothedArea A name constant used to used to create a smoothly filled area between the plotted values and the x-axis (zero level or another base value). It provides a gradient-like appearance instead of a sharp, rigid fill. stepLine A named constant for the 'Step Line' style, to be used as an argument for the style parameter in the plot function. stepLinebr A named constant for the 'Step line with Breaks' style, to be used as an argument for the style parameter in the plot function. stepArea A name constant used to create a stepped area chart, where the filled area follows a step-like pattern instead of a smooth curve. stepAreabr A name constant used to create a stepped background area fill. This style is similar to plotStyle.stepArea, but instead of filling the area with a standard overlay, it applies a background-style fill that integrates smoothly with the chart. bar Vertical column bars histogram A named constant for the 'Histogram' style, to be used as an argument for the style parameter in the plot function. scatter A named constant used to plot individual data points as scattered dots on the chart, instead of a continuous line triangular A named constant used to plot a triangular wave-like pattern instead of a standard line. cross A named constant for the 'Cross' style, to be used as an argument for the style parameter in the plot function. Example
//@lipi=2
indicator("plotStyle Example", overlay=false)
plot(close - open, title="Body", color=color.blue, style=plotStyle.histogram)
plot(talib.sma(close - open, 10), title="Average Body", color=color.orange, style=plotStyle.line)