paint
Tint the background of that bar. Use inside when, or paint … when … on one line.
paint green paint green when bullish
Same color names as plot. Inside a when body it only paints bars where the condition is true. One-liner: paint green when close is above ema(21).
Return value
—
Example
when bullish paint green when bearish paint red