odinParticipant
Veteran
Dear Friends,
what is the Advantage of Ehlers Super Smoothers?
Can i smooth the Result of Standard RSI Indicator?
RSI[14](Close)
How should the code Sound, it i wanna this RSI Indicator, Supersmooth with Ehlers?
Thank for Help.
You can smooth any data serie with any other calculation, to smooth the RSI with the Ehlers Super Smoother, you can do it like this:
//John Ehlers’ “Super Smoother”, a 2-pole Butterworth filter combined with a 2-bar SMA that suppresses the Nyquist frequency:
Period = 10
Data = RSI[14](close)
PI = 3.14159
f = (1.414*PI) / Period
a = exp(-f)
c2 = 2*a*cos(f)
c3 = -a*a
c1 = 1 - c2 - c3
if barindex>Period then
S = c1*(Data[0]+Data[1])*0.5 + c2*S[1] + c3*S[2]
endif
return S
odinParticipant
Veteran
thank you nicolas,
you are so a helpful guy! i hope you are working a lot of years more in this forum.
do i have to change the period 10 of ehlers super smoother?
oder is this the standard, and i have only to change the RSI14 period?
thanks for your feedback.
14 periods is the RSI calculation period, while Period=10 is the one for smoothing. You can change/adapt them for your own needs, there are no real good ones.
The above code only returns 0, displaying a single horizontal line.
I copied & pasted the code as is.