psraju

DT Oscillator

679
//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
开源脚本

本着真正的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)