July 20, 2016

Multiple colors added to fill() and an updated Ichimoku cloud

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

Usage example:

study(title="Colored fill")
p1 = plot(high)
p2 = plot(low)
fill(p1, p2, color = close>open ? green : red)

For more information check out Pine Script tutorial and the documentation.

This function, for example, let us improve the Ichimoku Cloud with additional coloring!