Investor behavior has reached an extreme not seen in 15 years. Here’s why that could be signaling a stock-market explosion to new highs.

The word “rational” rarely comes to mind when investors think about the mercurial, day-to-day gyrations of the market. When tension and emotions run high, it’s easy to focus on the minutiae, make …