# Relative Strength Index on Tranquilizers

‎524‎ مشاهدة
524
Some weeks ago, I had a patient in my practice who suffered from internal stability disorders.

Certainly not a case of disordered thinking or schizophrenic behaviour, because his general sense of direction wasn’t the problem.

He just couldn’t find the right overall balance, an ailment he struggled with for years.

Straight away I could diagnose that surgery wasn’t an option, so I gave him a medicine he would clearly benefit from.

I never heard from him again…. He must be doing just fine.

Cheers, Indicat...
```study(shorttitle="TRSI",title="Relative Strength Index on Tranquilizers" )
len = input(14), src = input(close)
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))
trq = rma(2*ema(rsi, len/2)-ema(rsi, len), round(sqrt(len)))
plot(trq, color=purple)
band1 = hline(70)
band0 = hline(30)
fill(band1, band0, color=purple, transp=90)```

## التعليقات

Thank you for the code. Its working. :)
رد
Hey, thank you for this. Would you make a cci version, too?
رد
andreas73
This treatment also stabilizes the CCI.

study(title="Commodity Channel Index on Tranquilizers ", shorttitle="TCCI")
length = input(20, minval=1)
src = input(close, title="Source")
ma = sma(src, length)
cci = (src - ma) / (0.015 * dev(src, length))
trq = rma(2*ema(cci, length/2)-ema(cci, length), round(sqrt(length)))
plot(trq, color=olive)
band1 = hline(100, color=gray, linestyle=dashed)
band0 = hline(-100, color=gray, linestyle=dashed)
fill(band1, band0, color=olive)
رد
Im liking this ! Great work. Is that right to Buy/Sell once it re-enters the purple zone ? Is that meant to be used as such ? Thx. AB
رد