Skip to main content
Return after RSI graphs for BTC, in the Script graphs panel

BTC on 15-minute bars in the 0xArchive Terminal, 2026-10-16.

Open on a chart

Load it on BTC 15m in the terminal, then change its settings or open it in the script editor.
What came after an RSI reading on this market: for each band of RSI five points wide, the average return over the next 12 bars, green where it rose and red where it fell, and a second graph of how many readings each band had. RSI is on the graphs’ own axis rather than the chart’s time, so they show in a Script graphs panel, which the script’s Graphs button on the chart opens.

How it works

graph(title) spaces its keys by value, so each band sits at its middle (32.5 for 30 to 35). Each bar looks back Bars ahead bars through series of RSI and close, adds what price did since to that reading’s band, and sets the band’s average, coloured by its sign. A band with few readings is noise: read the second graph before the first.

The script

rsi-forward-returns.ts

Next step

See the next example, RSI cross, pasted Pine.
Last modified on October 16, 2026