Is there a way to check in pipeline if earnings date is within 2 days
I think its something like this but I keep getting errors
from quantopian.pipeline.data.eventvestor import EarningsCalendar
from quantopian.pipeline.factors.eventvestor import (
BusinessDaysUntilNextEarnings,
BusinessDaysSincePreviousEarnings
)
def make_pipeline():
minprice = USEquityPricing.close.latest > 5
pipe.add(BusinessDaysUntilNextEarnings(), 'NE')
pipe.scree('NE' <=2)