Hi,
I'm trying to pass a technical filter (MA(20) > MA(60)) over a fundamental algo (an adaptation of the one available here on the community).
Code is as follows:
for s in context.fundamental_df:
if (s.mavg(20) > s.mavg(60)):
context.stocks.append(s)
The error I get is: AttributeError: 'Security' object has no attribute 'mavg'
What am I missing here? Do I need to initialize something of some sort in order for this code to work?