This is a deviation scaled moving average original designed by John Ehlers. It is a new adaptive moving average that has the ability to rapidly adapt to volatility in price movement with minimal lag. Because it is so smooth and adapts to the volatility of the market it is by far a really great tool for spotting trend changes
So my question is, do you happen to have any clue which one is correct as per Ehler's original design?
canpp
⋅
Hi @ChuckBanger this is a perfect script that I use all the time! is it possible to make it multi time frame? I tried but it returns an error message bellow:
"Cannot use a mutable variable as an argument of the security function."
the code I tried was:
res = input(title="Resolution", type=input.resolution, defval="360")
@canpp, You can make it multi time frame by change row 5 from:
study("Deviation Scaled Moving Average [ChuckBanger]", overlay=true, shorttitle="DSMA")
To this:
study("Deviation Scaled Moving Average [ChuckBanger]", overlay=true, shorttitle="DSMA", resolution="")
This is great code
I see in traders.com/Documentation/FEEDbk_docs/2018/07/TradersTips.html
b1 = 2 * a1 * cos( 1.414 * 3.14159 / ( 0.5 * length) )
b1 = 2 * a1 * cos(1.414 * 180 / (0.5 * length))
And you choose
b1 = 2 * a1 * cos(1.414 * 180 / (0.5 * length))
Why you choose the number "180" ?