I haven't been on in awhile. Thought I'd do a quick 4th of July RSI
//@version=2 study(title="Jesse's RSI", shorttitle="Patriotic RSI") src = close, len = input(7, minval=1, title="Length") up = rma(max(change(src), 0), len) down = rma(-min(change(src), 0), len) rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 + up / down)) plot(rsi, color=orange) band3 = hline(0, "zero", black, 2, 0) band4 = hline(100, "100", black, 2, 0) band1 = hline(80, "OB", red, 2, 1) band0 = hline(20, "OS", green, 2, 1) fill(band1, band0, color=white, transp=90) fill(band4, band1, color=red, transp=30) fill(band3, band0, color=blue, transp=30)