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
Watch it run · EURUSD · 1h bars
strength

Sample data. Not a result. The real AlgoBarsX engine ran this exact script on made-up bars, and this replays what it drew and did. It shows no profit or loss, and it says nothing about how the script would do in a real market.

Replay of this script on 150 sample bars: 1 line drawn.

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