I was testing the fine/coarse demonstration algorithm to see what happened if I switched the P/E ratio to another fundamental metric. When I tested different valuation ratios, the backtests were successful, but the algorithm crashed when I tested it with operation ratios. Not sure if data is missing, maybe adding dropna somewhere would help.

Author