TradeZoro
Notifications

Cookbook

Gradient volume

Color by how big a value is.

//@zscript 1
indicator("Gradient")
r = ta.rsi(close, 14)
c = color.from_gradient(r, 30, 70, color.red, color.green)
plot(r, "RSI", style=plot.style_columns, color=c)
-4.4916.4637.4058.3479.29
Sample bars, not market data. Gradient.

How it works

color.from_gradient(value, low, high, colorLow, colorHigh) blends between two colors.

Education only. Not financial advice. Examples are teaching samples, not trading results.

Zscript is coming soon

The manual opens when Zscript launches.

Back to home