Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Redefinition of Unused Compute

When coding the following, an error code appears saying "Redefinition of Unused compute on line (insert whatever line number)"

class pptday(CustomFactor):
inputs = [USEquityPricing.close]
window_length = 2

def compute(self, today, assets, out, close):
out[:] = close[0]-close[-1]

class ppt60(CustomFactor):
inputs = [USEquityPricing.close]
window_length = 60
def compute(self, today, assets, out, endprice):
out[:] = (endprice[0]-endprice[-1])/60

any suggestions?

1 response

Post this as code (click the {} button first), so we can see the indentation.