psraju

DT Oscillator

678
//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)