Stocks have rallied sharply for more than three months in anticipation of an economic rebound in the year 's second half .