Here is a simple trick from the world of digital signals processing to improve the filtering performance of your MAs.
1. Filter the input signal, x(n) i.e. price, once with your moving average
2. Double the moving average value to obtain w(n)
3. Subtract w(n) from 3*x(n) to obtain u(n)
4. Filter u(n) twice with your moving average to obtain your output y(n)
You are welcome.
1. Filter the input signal, x(n) i.e. price, once with your moving average
2. Double the moving average value to obtain w(n)
3. Subtract w(n) from 3*x(n) to obtain u(n)
4. Filter u(n) twice with your moving average to obtain your output y(n)
You are welcome.