Generates signals for S&P 500 stocks depending on input rules