The stock market has predicted nine of the last five recessions.