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.

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.

//////////////////////////////////////////////////////////// // Copyright by HPotter v1.0 24/04/2014 // Double Smoothed Stochastics (DSS) is designed by William Blaw. // It attempts to combine moving average methods with oscillator principles. //////////////////////////////////////////////////////////// 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) //xDSS = stoch(xPreCalc, xPreCalc, xPreCalc, PDS) xTrigger = ema(xDSS, TriggerLen) plot(xDSS, color=blue, title="DSS") plot(xTrigger, color=red, title="Trigger")

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.

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")

//xDSS = stoch(xPreCalc, xPreCalc, xPreCalc, PDS)

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")

However, after changing it ... same:

Script could not be translated from: )|E|

|B|xDSS5 = ema(stoch

I don't know what |E||B| means as related to xDSS5 = ema(stoch

It seems that's the line where it's failing.

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")

xDSS = stoch(xPreCalc, xPreCalc, xPreCalc, PDS) - Should be commented, sorry I forgot it ))

xPreCalc5 = ema(stoch(close,high,low,5)EMAlen) - This should be "," before EMAlen

It works now. Thank you very much for your patience!

This is the Amibroker formula I've been using for years. But I don't know how to translate it to pine script. Maybe you'd be interested in seeing how this compares?

Slw = 3;

Pds = 5;

sto = EMA((Close-LLV(Low,Pds))/(HHV(H,pds)-LLV(L,Pds)),Slw)*100;

DSS5 = EMA((sto-LLV(sto,pds))/(HHV(sto,Pds)-LLV(sto,Pds)),Slw)*100;

Plot(DSS5,"DSS5",2,1);

// 2,1 in the line above refer to color and line style

Pds = 10;

Sto = EMA((Close -LLV(Low,Pds))/(HHV(H,Pds)-LLV(L,Pds)),Slw)*100;

Dss10=EMA((Sto-LLV(Sto,pds))/(HHV(Sto,Pds)-LLV(Sto,Pds)),Slw)*100;

Plot(DSS10,"DSS10",colorRed,1);

In this formula, LLV is lowest low value of all lows in Pds, and HHV is the highest high in all highs of Pds.

If you could put this into Pine Script, you will be my hero.

(Close -LLV(Low,Pds))/(HHV(H,Pds)-LLV(L,Pds)

Formula stochastic what we are used.

We are have emalen = 9 as default. In this formula default 3. To try change it.

Again, thank you very much kind sir. :)