recursive moving trend average