The Standard & Poor's 500 index finished higher Tuesday as investors were upbeat on lower oil prices and a report from the Commerce Department that said sales of new homes rose in April.
The S&P 500 gained 9.42 points to finish at 1,385.35.
Hershey Co., the nation's largest candy maker, rose $3.42, or 9.4 percent, to $39.93.
Telecom service provider Citizens Communications Co. rose 53 cents, or 4.8 percent, to $11.55, following a Credit Suisse upgrade.
Darden Restaurants Inc. rose $1.44, or 4.5 percent, to $33.18, after an analyst upgraded the restaurant operator.
On the losing side, Freddie Mac and Fannie Mae declined as John Dugan, the U.S. comptroller of the currency, voiced opposition to an agreement by the mortgage finance companies to stop buying mortgages involving the lenders' in-house appraisers. Dugan said the agreement violates federal law and may hurt the mortgage industry.
Freddie Mac slipped $1, or 3.9 percent, to $24.73, and Fannie Mae declined $1.06, or 3.8 percent, to $26.53.
Agricultural products company Archer Daniels Midland Co. declined $1.22, or 2.8 percent, to $41.95.