hello, do you help me to put the owner scale the combination 2 indicator in one?
Regards
//@version=4
study(title="CCI+RSI", shorttitle="CCI+RSI")
// CCI
length = input(20, minval=1)
src = input(close, title="Source")
ma = sma(src, length)
cci = (src - ma) / (0.015 * dev(src, length))
plot(cci, color=color.olive)
band1 = hline(175, color=color.gray)
band0 = hline(-175, color=color.gray)
fill(band1, band0, color=color.olive)
// FIN CCI
// RSI
srcRSI = close, lenRSI = input(14, minval=1, title="Length")
up = rma(max(change(srcRSI), 0), lenRSI)
down = rma(-min(change(srcRSI), 0), lenRSI)
rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 + up / down))
plot(rsi, color=color.purple)
bandRSI1 = hline(70)
bandRSI0 = hline(30)
fill(bandRSI1, bandRSI0, color=color.purple, transp=90)
// FIN RSI