Exponential Moving Average in Eviews?

For questions regarding programming in the EViews programming language.

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

chrismeyer
Posts: 2
Joined: Mon Aug 10, 2009 5:38 am

Exponential Moving Average in Eviews?

Postby chrismeyer » Fri Oct 28, 2011 1:19 am

Dear all,

I have a simple question: Is there a possibility to calculate the Exponential Moving Average (EMA) of a series in Eviews?

Thanks in advance.

Christoph

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

Re: Exponential Moving Average in Eviews?

Postby EViews Gareth » Fri Oct 28, 2011 7:50 am

There's nothing build in. However the TechAsis library (and the TechAsis Add-in) both have a subroutine that do it. http://eviews.com/Addins/addins.shtml It is the ema subroutine, I believe.

chrismeyer
Posts: 2
Joined: Mon Aug 10, 2009 5:38 am

Re: Exponential Moving Average in Eviews?

Postby chrismeyer » Tue Nov 08, 2011 1:10 pm

Many thanks for your answer.

In the meantime I got the impression that one could also use the "smooth" function to get the exponential moving average (ema) in EViews. For example, if one wants to calculate the N-period exponential moving average of series_x, one could write "smooth(s, 2/(N+1)) series_x series_x_emaN".


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests