
BTC on 1-hour bars in the 0xArchive Terminal, 2026-10-15.
Open on a chart
Load it on BTC 1h in the terminal, then change its settings or open it in the script editor.
How it translates
var int crosses = 0becomes astate.bar(0)cell, kept across bars and rolled back while the bar forms.ta.rsi(close, len)andta.crossover(r, 30)each become an instance created at the top and updated on every bar, as Pine keeps one history per call.hlinebecomesplot.level, and thefillbetween the two levels aplot.fillbetween their handles.plotshapebecomesplot.shape, withshape.triangleupastriangleUp.
The script
rsi-pine.pine