TradingView
HPotter
٢٣ نيسان أبريل ٢٠١٤ ٠٥:٠٧
DSS Bressert (Double Smoothed Stochastic)
CME:ES1!
الوصف
⋅
٢٣ نيسان أبريل ٢٠١٤ ٠٥:٠٧
Hi
Let me introduce my DSS Bressert (Double Smoothed Stochastic) script.
Double Smoothed Stochastics (DSS) is designed by William Blaw.
It attempts to combine moving average methods with oscillator principles.
ملاحظات الأخبار
⋅
٢٧ آب أغسطس ٢٠٢١ ٠٧:٣٩
Move to v4
Added Time Frame settings
Stochastic Oscillator
DSS
bressert
smoothed
التعليقات
SetagayaGirl
⋅
١٣ كانون الأول ديسمبر ٢٠١٦ ٠٥:٢١
How would one plot a PDS = 5 on the same chart? Thanks
HPotter
⋅
١٣ كانون الأول ديسمبر ٢٠١٦ ٠٥:٣٥
@SetagayaGirl
, If I understand you correctly. Just do comment line 19
SetagayaGirl
⋅
١٣ كانون الأول ديسمبر ٢٠١٦ ٠٥:٣٧
@HPotter
, Yes, I'd like to remove the trigger line, but I'd like to see a DSS for both 5 & 10 PDS on the same chart. Thanks
HPotter
⋅
١٣ كانون الأول ديسمبر ٢٠١٦ ٠٦:٠٥
@SetagayaGirl
,
For this you should change script. Should add lines:
---------
xPreCalc5 = ema(stoch(close, high, low, 5), EMAlen)
xDSS5 = ema(stoch(xPreCalc5, xPreCalc5, xPreCalc5, 5), EMAlen)
------
plot(xDSS5, color=blue, title="DSS-5")
For 10 PDS you should use defoult value from inputs.
SetagayaGirl
⋅
١٣ كانون الأول ديسمبر ٢٠١٦ ٠٦:١٠
@HPotter
, Thanks much. I'll let you know how it goes. :)
SetagayaGirl
⋅
١٣ كانون الأول ديسمبر ٢٠١٦ ٠٦:٢٨
@HPotter
, I have failed, it seems. :( (Error: cannot compile script)
study(title="DSS Bressert (Double Smoothed Stochastic)", shorttitle="DSS Bressert")
PDS = input(10, minval=1)
EMAlen = input(9, minval=1)
TriggerLen = input(5, minval=1)
Overbought = input(80, minval=1)
Oversold = input(20, minval=1)
hline(Overbought, color=green, linestyle=line)
hline(Oversold, color=red, linestyle=line)
xPreCalc = ema(stoch(close, high, low, PDS), EMAlen)
xDSS = ema(stoch(xPreCalc, xPreCalc, xPreCalc, PDS), EMAlen)
xPreCalc5 = ema(stoch(close,high,low,5)EMAlen)
xDSS5 = ema(stoch(xPreCalc5,xPreCalc5,xPreCalc5,5), EMAlen)
//xDSS = stoch(xPreCalc, xPreCalc, xPreCalc, PDS)
//xTrigger = ema(xDSS, TriggerLen)
plot(xDSS, color=blue, title="DSS")
//plot(xTrigger, color=red, title="Trigger")
plot(xDSS5, color-white, title="DSS5")
HPotter
⋅
١٣ كانون الأول ديسمبر ٢٠١٦ ٠٦:٣٣
@SetagayaGirl
uncomment this
//xDSS = stoch(xPreCalc, xPreCalc, xPreCalc, PDS)
SetagayaGirl
⋅
١٣ كانون الأول ديسمبر ٢٠١٦ ٠٦:٣٦
@HPotter
, Thanks. I did that however, and still cannot compile.
study(title="DSS Bressert (Double Smoothed Stochastic)", shorttitle="DSS Bressert")
PDS = input(10, minval=1)
EMAlen = input(9, minval=1)
TriggerLen = input(5, minval=1)
Overbought = input(80, minval=1)
Oversold = input(20, minval=1)
hline(Overbought, color=green, linestyle=line)
hline(Oversold, color=red, linestyle=line)
xPreCalc = ema(stoch(close, high, low, PDS), EMAlen)
xDSS = ema(stoch(xPreCalc, xPreCalc, xPreCalc, PDS), EMAlen)
xPreCalc5 = ema(stoch(close,high,low,5)EMAlen)
xDSS5 = ema(stoch(xPreCalc5,xPreCalc5,xPreCalc5,5), EMAlen)
xDSS = stoch(xPreCalc, xPreCalc, xPreCalc, PDS)
//xTrigger = ema(xDSS, TriggerLen)
plot(xDSS, color=blue, title="DSS")
//plot(xTrigger, color=red, title="Trigger")
plot(xDSS5, color-white, title="DSS5")
HPotter
⋅
١٣ كانون الأول ديسمبر ٢٠١٦ ٠٧:١٤
@SetagayaGirl
, I think last line should be: color=white and not a color-white
SetagayaGirl
⋅
١٣ كانون الأول ديسمبر ٢٠١٦ ٠٧:١٧
@HPotter
, Ahah! You are so right. Can't believe I missed that. :)
However, after changing it ... same:
Script could not be translated from: )|E|
|B|xDSS5 = ema(stoch
المزيد