U.S. stocks were little changed near all-time highs as declines in Hewlett-Packard Co. and Apple Inc. offset gains among retailers amid corporate earnings.

Hewlett-Packard tumbled 9.9 percent after saying earnings will be hurt by the rising dollar. Apple lost 2.6 percent as technology shares slumped 0.7 percent. Chesapeake Energy dropped 9.6 percent as earnings fell short of analysts™ projections. Dollar Tree Inc. and TJX Cos. added more than 2.2 percent to pace gains among retailers.

The Standard & Poors 500 Index fell less than 0.1 percent to 2,113.83 at 4 p.m. in New York. The Dow Jones Industrial Average rose 15.38 points, or less than 0.1 percent, to a record 18,224.57. The Nasdaq Composite lost less than 1 point, ending a 10-day rally that brought the gauge to within 1.6 percent of its 2000 record.

Source: Bloomberg