bgcolor

Colors the pane background behind the current bar. na leaves it unchanged.

bgcolor(color: color, title: const string = na, display: const string = "all", offset: const int = 0, show_last: const int = na, editable: const bool = true, force_overlay: const bool = false)

Parameters

Example

bgcolor(close > open ? color.new(color.green, 90) : na)