PE ratio spikes are a lagging indicator though. The spikes are after recessions.

Markets collapse, investments slow/stop, orders dry up, suddenly stocks must be valued on future hypothetical orders post-recession (same company, eventually the economy will turn and someone will buy), current PE values spike as current earnings become decoupled from stock price