fill_area

fill_area(first, second[, name][, color])[has-table-overload]
Parameters
  • first (series or numeric) – First value

  • second (series or numeric) – Second value

  • name (string) – Plot name. Default name is "fill_area(first, second)"

  • color (color) – Plot color. Default value is "white"

Fills the area between the current values of the first and second.

Example:

overbought = input(80, "Overbought")
oversold = input(20, "Oversold")

fill_area {
    first = overbought,
    second = oversold,
    color = rgba(255,255,255,0.2)
}