Hello, I want to get a list of securities sorted by ROIC, for this I used the coarse-fine universe method in the lab algorithm (with PERatio as example) to test it but when I replace the PERatio by ROIC I have this bug;

Cannot convert object of type Python.Runtime.CLRObject to IComparable

at FineSelectionFunction

def FineSelectionFunction(self, fine): # sort descending by P/E ratio sortedByPeRatio = sorted(fine, key=lambda x: x.OperationRatios.ROIC, reverse=True) # take the top entries from our sorted collection return [ x.Symbol for x in sortedByPeRatio[:self.__numberOfSymbolsFine] ] # __numberOfSymbolsFine is defined I use the same params as the example with the PERRatio

Thanks for you help.

Author