I am confused with the order of the values in the compute method of a Factor.
class TestF(CustomFactor):
inputs = [USEquityPricing.close]
def compute(self, today, assets, out, values):
...
I understand values will be a M x N numpy array, where M is the window_length and N the number of securities.
However, what's the order?
If I have a windows_length of 5, what day is values[0]? Is it today or today -4?
So basically, to be visual, are my rows:
i=0 | today
i=1 | today - 1
i=2 | today - 2
i=3 | today - 3
i=4 | today - 4
or
i=0 | today - 4
i=1 | today - 3
i=2 | today - 2
i=3 | today - 1
i=4 | today