What about trying some of the built in Ehlers filters for finding a better moving average?