Can anyone shed some light in how window lengths affect reported values in pipeline for a company's cash flow statement? For example if I'm looking for the net income of AMZN for 2015 should I set the window length in my custom class (below) to 1 for 1 year, 12, 4, or 252 for trading days? Also which date should I refer to on the pipeline?
My intent is to compare companies based on performance in previous years/quarters.
Thanks.
class Net_Income(CustomFactor):
inputs = [morningstar.cash_flow_statement.net_income]
window_length = wl
def compute(self, today, assets, out, net_inc):
out[:] = sum(net_inc)