S&P 500 flashes a pattern unseen since the 2000 dot-com peak