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

Example

plotbar(open, high, low, close, "Bars", close >= open ? color.teal : color.red)