Indicat

Relative Strength Index on Tranquilizers

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...
Remove from Favorite Scripts Add to Favorite Scripts
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)
AB-Trading PRO
7 months ago
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
Reply
Indicat PRO AB-Trading
7 months ago
It's not a strategie, just more tranquility.
Reply
andreas73
6 months ago
Hey, thank you for this. Would you make a cci version, too?
Reply
Indicat PRO andreas73
6 months ago
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)
Reply
andreas73
6 months ago
Thank you for the code. Its working. :)
Reply
Ideas Scripts Chart
United States
United Kingdom
India
España
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Billing Sign Out