Gradient RSI Candles

Gradient RSI Candles is an indicator drawn in its own pane.

core language

gradient-rsi-candles.abx
1indicator "Gradient RSI Candles"
2pane: new
3
4input length = 14
5
6strength = rsi(close, length)
7tint = gradient(strength, low: red, high: green, from: 30, to: 70)
8
9pane "RSI", height: 30%
10candles open: open, high: high, low: low, close: close, color: tint, pane: "RSI"
11plot strength, color: tint, width: 2, pane: "RSI"
12hline 70, style: dashed, color: gray
13hline 30, style: dashed, color: gray
What this script says

Gradient RSI Candles is an indicator drawn in its own pane.

You can change one input: length (default 14).

It calculates strength as the RSI over length bars and tint as the gradient (value strength, low red, high green, from 30, to 70).

On the chart, it draws a pane, draws a candles, plots strength, draws a horizontal line at 70 and draws a horizontal line at 30.

Try this in the Terminal. AlgoBars is free: $0 a month, no card needed.

Create my free account