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
colorcolor: The background color for this bar; na leaves it unchanged.titleconst string: Its name in the legend and the settings.displayconst string: display.none does not draw it; every other display.* value (default display.all) draws it.offsetconst int: shifts it by this many bars: positive moves it right (into the future), negative left (at most 500)show_lastconst int: draw only on the newest this many bars (na: all)editableconst bool: Accepted for scripts from Pine and ignored: it changes nothing on PROLYNT.force_overlayconst bool: Accepted for scripts from Pine and ignored: it draws in the script pane.
Example
bgcolor(close > open ? color.new(color.green, 90) : na)