forward looking moving average

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

EviewsUser1
Posts: 40
Joined: Thu Aug 28, 2014 8:08 am

forward looking moving average

Postby EviewsUser1 » 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?

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: forward looking moving average

Postby EViews Gareth » Mon Jun 13, 2016 1:55 pm

@movav(rff(120))


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest