Gradient RSI Candles
Gradient RSI Candles is an indicator drawn in its own pane.
core language
1
indicator "Gradient RSI Candles"2
pane: new3
4
input length = 145
6
strength = rsi(close, length)7
tint = gradient(strength, low: red, high: green, from: 30, to: 70)8
9
pane "RSI", height: 30%10
candles open: open, high: high, low: low, close: close, color: tint, pane: "RSI"11
plot strength, color: tint, width: 2, pane: "RSI"12
hline 70, style: dashed, color: gray13
hline 30, style: dashed, color: grayWhat 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.