forward looking moving average
Posted: Mon Jun 13, 2016 1:15 pm
Is there an automatic way (a function perhaps) to calculate a forward moving average? I have a variable rff and I would like to construct a series rff_forward = (rff+rff(1)+rff(2)+......+rff(119))/120.
The @movav does not seem to work for forward moving averages. Any advice?
The @movav does not seem to work for forward moving averages. Any advice?