plotcandle
Draws a candle per bar from four series (open, high, low, close), like the chart candles: a body from open to close, a wick from low to high. A bar where any of the four is na draws nothing.
plotcandle(open: float, high: float, low: float, close: float, title: const string = na, color: color = na, wickcolor: color = na, editable: const bool = true, show_last: const int = na, bordercolor: color = na, display: const string = "all", force_overlay: const bool = false)
Parameters
openfloat: the open of each bar's candlehighfloat: the high of each bar's candlelowfloat: the low of each bar's candleclosefloat: the close of each bar's candletitleconst string: Its name in the legend and the settings.colorcolor: body color; na uses the next color of the PROLYNT plot palettewickcolorcolor: wick color; na: the body coloreditableconst bool: Accepted for scripts from Pine and ignored: it changes nothing on PROLYNT.show_lastconst int: draw only on the newest this many bars (na: all)bordercolorcolor: border color; na: the body colordisplayconst string: display.none does not draw it; every other display.* value (default display.all) draws it.force_overlayconst bool: Accepted for scripts from Pine and ignored: it draws in the script pane.
Example
plotcandle(open, high, low, close, "Candles", close >= open ? color.teal : color.red)