plotbar
Draws an OHLC bar per bar from four series: a vertical line from low to high, a tick to the left at open and one to the right at close. A bar where any of the four is na draws nothing.
plotbar(open: float, high: float, low: float, close: float, title: const string = na, color: color = na, editable: const bool = true, show_last: const int = 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: na uses the next color of the PROLYNT plot paletteeditableconst 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)displayconst 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
plotbar(open, high, low, close, "Bars", close >= open ? color.teal : color.red)