Every time the stock market has hit a new all-time high during a recession, it has rallied further over the next 12 months.