Hello Everybody
I am new with quantopian, I am building an investment strategy that relies on the following pipeline data
from quantopian.pipeline.data.quandl import fred_gdp
pipe_x=fred_gdp.value
I would prefer to use gdp growth instead of the level itself. I know how to get the growth between last quarter and this quarter by using for example
(pipe_x[-1]-pipe_x[-n])/pipe_x[-n] # Where n is how far I want to go to calculate de growth
The problem is that I also want to calculate moving averages of growth. Using for example the function SimpleMovingAverage()
Is it possible to have a time series of gdp growth instead of a time series of gdp level?
Thanks in advance