FXCloud

MTI Stochastic RSI

Red %K line
Blue %D Line
Green %D_Slow Line

オープンソーススクリプト

TradingViewの精神に則り、このスクリプトの作者は、トレーダーが理解し検証できるようにオープンソースで公開しています。作者に敬意を表します!無料で使用することができますが、このコードを投稿で再利用するには、ハウスルールに準拠する必要があります。 お気に入りに登録してチャート上でご利用頂けます。

免責事項

これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。

チャートでこのスクリプトを利用したいですか?
study(title="MTI Stochastic RSI", shorttitle="MTI Stoch RSI")
//Inputs
src = input(close, title="RSI Source")
lengthRSI = input(14,title="RSI Length", minval=1)
smoothK = input(8,title="%K", minval=1)
smoothD = input(5,title="%D", minval=1)
slowD = input(5,title="%D", minval=1)
//RSI Calculation
rsi1 = rsi(src, lengthRSI)
//StochRSI Calculation
k=100*(rsi1-lowest(rsi1,smoothK))/(highest(rsi1,smoothK)-lowest(rsi1,smoothK))
d=sma(k, smoothD)
d_slow=sma(d,slowD)
//StochRSI Plot
plot(k,title="%K",color=red)
plot(d, title="%D", color=blue)
plot(d_slow, title="%D_slow", color=green)
h0 = hline(80,title="Overbought",color=red,linestyle=solid)
h1 = hline(20,title="Oversold",color=red,linestyle=solid)