The Double Smoothed Stochastic indicator was proposed by William Blau and Walter Bressert. The calculation of the DSS values is similar to the Stochastic indicator, the difference is the use of the double exponential smoothing.
The interpretation of the DSS values is the same as for Stochastic – the values above 80 indicate the state of overbought market, the values below 20 indicate the state of the oversold market.
//PRC_DSS Bressert | indicator
//01.08.2019
//Nicolas @ www.prorealcode.com
//Sharing ProRealTime knowledge
// --- settings
PDS = 10
EMAlen = 9
TriggerLen = 5
Overbought = 80
Oversold = 20
// --- end of settings
sto1 = stochastic[PDS,1](close)
xPreCalc = average[EMAlen,1](sto1)
storange = highest[PDS](xPreCalc)-lowest[PDS](xPrecalc)
sto2 = (xPrecalc-lowest[PDS](xPrecalc))/storange*100
//sto2 = stochastic[PDS,1](xPreCalc)
xDSS = average[EMAlen,1](sto2)
xTrigger = average[TriggerLen,1](xDSS)
RETURN overbought coloured(0,255,0) style(dottedline,3), oversold coloured(255,0,0) style(dottedline,3),xDSS coloured(0,0,255),xTrigger coloured(255,0,0)