Documentation/AlgoCode/Function reference

paint

Optional bar-background tint. Use inside when, or paint … when … on one line.

Reference/Language/Language

paint green    paint green when bullish

Same color names as plot. Does not replace the Buy/Sell/Exit arrow. Inside a when body it only paints bars where the condition is true. One-liner: paint green when close is above ema(21). Prefer mask for split-color Supertrend / MA lines instead of painting the whole chart.

Return value

—

Example

when bullish
  paint green
when bearish
  paint red

See also