Hello,
I have created a custom factor but when I run algorithm the IDE complains that out variable is never used although I am returning correct data type and dimension.
class EfficiencyRatio(CustomFactor):
inputs = [USEquityPricing.close]
window_length = 10
def compute(self, today, assets, out, close):
er = efficiencyRatio(close)
print("ER type and dim: ", type(er), er.ndim)
out = er
2011-01-04PRINT('er type and dim: type numpy.ndarray, 1)
Can anyone see what is wrong?