Multicolor filling

From TradingView Wiki
Jump to: navigation, search
Language: English  • Русский

You can set a different fill color on each bar with the fill() function.

Usage example:

//@version=2
study(title="Colored fill", overlay=true)
p1 = plot(high)
p2 = plot(low)
fill(p1, p2, color = close>open ? green : red)

Colored filling.png