Stocks mounted a major late-day rally as investors tried to get ahead of any post-war rally.