oeauoeu23324

Stochastic RSI v2

Stochastic RSI with middle line
Remove from Favorite Scripts Add to Favorite Scripts
study(title="Stochastic RSI v2", shorttitle="Stoch RSI v2")
smoothK = input(3, minval=1)
smoothD = input(3, minval=1)
lengthRSI = input(14, minval=1)
lengthStoch = input(14, minval=1)
src = input(close, title="RSI Source")

rsi1 = rsi(src, lengthRSI)
k = sma(stoch(rsi1, rsi1, rsi1, lengthStoch), smoothK)
d = sma(k, smoothD)
plot(k, color=blue, linewidth=3)
plot(d, color=orange, linewidth=3)
h0 = hline(90, title="Top Line", linewidth=2)
h1 = hline(10, title="Bottom Line", linewidth=2)
h2 = hline(50, color=#ff0000, title="Middle Line", linewidth=2)
fill(h0, h1, color=purple, transp=90)
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