I am making an algo and one of the factors is days until the next dividend date. I used the
BusinessDaysUntilNextExDate factor, imported from
from quantopian.pipeline.factors.eventvestor import BusinessDaysUntilNextExDate
in my pipeline.
The sample notebook/algo that uses this example gives a broken example; If you try to run it it won't work, throwing up the error message:
TypeError: zipline.pipeline.pipeline.add() expected a value of type zipline.pipeline.term.Term for argument 'term', but got abc.ABCMeta instead
The issue is on this line of code:
pipe.add(BusinessDaysUntilNextExDate, 'business_days')
The code for this factor should be:
pipe.add(BusinessDaysUntilNextExDate(), 'business_days')
(note the added brackets). Could somebody with edit permissions please change this, so that sample program works?
All the best,
Max