Coding Bressert DSS
Author: FishFlip_MVP
Creation Date: 6/20/2017 5:52 AM
profile picture

FishFlip_MVP

#1
Hi, im having trouble coding this indicator.

I've attached an image of the formula im trying to replicate but my code doesnt seem to be working, i think its to do with the last step involving the EMA.



CODE:
Please log in to see this code.


*Edit was adding Image into post

*Edit // Eugene: fixed image link
profile picture

Eugene

#2
Hi,

It's more simple than you think.

1) First, there's an indicator described as very close to Bressert DSS - called Irwin Cycle.
2) The "X" is simply EMA-smoothed DSS indicator (built into WLD). It boils down to this:
CODE:
Please log in to see this code.

3) Unfortunately, there's no shortcut for Bressert DSS (the "b") and but coding the rest is a one-liner too since it's EMA-smoothed Stochastic again.

Let me know if this matches the trading platform you're comparing against and the proper "r" and "n" lookback periods and I'll include the indicator in Commuity.Indicators for its July 2017 release.

CODE:
Please log in to see this code.


P.S. On a related note, avoid calling .Value in a loop in your strategies. It's going to be much faster if you call the .Series method instead:
CODE:
Please log in to see this code.
profile picture

FishFlip_MVP

#3
Eugene, thankyou for your response and code sample, its a great help and indicator seems to be right.
profile picture

Eugene

#4
Glad to help. For inclusion in C.Indicators I'll go with EMA(8) and Stochastic(13), OB(80) + OS(20) as the default settings.
profile picture

Eugene

#5
Bressert DSS included in C.Indicators 2017.07. Please update the extension and restart WL.