One of the most widely followed gauges of the stock market, for decades a reliable indicator of future returns, has led investors astray in recent years. Its misdirection comes down to the freakish earnings growth of big technology companies such as Apple Inc. and Alphabet Inc.