Record-high U.S. consumer confidence in the stock market often signals impending downturns.