Robert C. Miners DT Oscillator - a version of the Stochastics RSI.
開源腳本

本著真正的TradingView精神,該腳本的作者將其開源發布,以便交易者可以理解和驗證它。為作者喝彩吧!您可以免費使用它,但在出版物中重複使用此代碼受網站規則的約束。 您可以收藏它以在圖表上使用。

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。

想在圖表上使用此腳本?
//This is Robert C. Miner's DT Oscillator, a version of the Stochastics RSI.
//See his book, High Probability Trading Strategies
// There are four possible parameter combinations for this indicator:
//  8,5,3,3   13,8,5,5   21,13,8,8   34,21,13,13
study(title="DTOscillator", shorttitle="DTOsc")
source = close
lengthRSI = input(8, minval=8)
lengthStoch = input(5, minval=5)
smoothK = input(3, minval=3)
smoothD = input(3, minval=3)
rsi1 = rsi(source, lengthRSI)
stochRSI = stoch(rsi1,rsi1,rsi1,lengthStoch)
k = sma(stochRSI,smoothK)
d = sma(k, smoothD)
plot(k, color=black)
plot(d, linewidth=2,color=purple)
hline(75, color=red)
hline(25, color=green)