U.S. stocks wavered on Monday, with benchmark indexes backing off milestones that lifted the Nasdaq Composite above 4,000 for the first time in 13 years, as Wall Street pondered an unexpected drop in pending home sales in October and an agreement by Iran to limit its nuclear program.
"Making new highs with poor or lagging breadth is not a healthy picture. However, this market can be so rotational that poor breadth does not scare anyone as the market always seems to come back," noted Elliot Spar, market strategist at Stifel, Nicolaus & Co.
The Dow Jones Industrial Average retained a slight advance, and therefore closed at a record, up 7.77 points, or 0.1 percent, to 16,072.54. Caterpillar led gains after Bank of America upgraded shares of the maker of farming and mining equipment to buy from neutral. Boeing weighed, its shares falling after the airline manufacturer warned of engine icing risk on its new 747-8 and 787 Dreamliner planes.
Shares of Wal-Mart Stores rose after the discount retailer and Dow component said Doug McMillon, who runs its international business, would succeed Mike Duke as president and CEO, effective Feb. 1.
After climbing to an intraday record of 1,808.10, the S&P 500 lapsed into negative terrain, with energy and materials leading the drop among its 10 major sectors. It fell 2.28 points, or 0.1 percent, to 1,802.48.
After climbing above 4,000 for the first time since September 2000, the Nasdaq held a small gain, but fell back under 4,000, rising 2.92 points, or 0.1 percent, to 3,994.57.
For every seven shares rising, roughly eight gained on the New York Stock Exchange, where nearly 626 million shares traded. Composite volume neared 3 billion.
BlackBerry on Monday said James Yersh would replace Brian Bidulka as the company's CFO, and that its chief operating officer and chief marketing officer were departing. The management shakeup follows the troubled wireless-device maker's naming of a new chief executive earlier in the month.
The National Association of Realtors reported signed contracts to buy existing homes declined for a fifth straight month in October, illustrating a slowing in the housing market. The gauge of closed sales in November and December fell 0.6 percent from an upwardly revised September reading.
While the details are to be determined, the accord reached with Iran "bodes well, and is a net positive for equities, and today's action would support that" said Terry Sandven, chief equity strategist at U.S. Bank Wealth Management. "Housing has lost some steam of late, which may be a function of higher mortgage rates," said Sandven, who adds that "we expect the housing recovery is still occurring."
DaVita Healthcare Partners rallied after the dialysis-services provider said Medicare reimbursement rates would not decline in 2014.
Alcoa jumped after Goldman Sachs upgraded shares of the aluminum producer to buy from neutral.
The interim agreement between Iran and the U.S. and five other nations would have Iran curtailing its nuclear activities in return for reduced international sanctions on car parts and commodities including oil and gold. The deal prompted shares of airlines to jump, along with those of auto-parts makers.
"The initial Iranian agreement with the world to surrender its nuclear ambitions - at least the naughty part - is bolstering stocks and goosing the dollar. Commodity prices are finding a clearer path during a difficult year when traditional correlations fell by the wayside," Andrew Wilkinson, chief economic strategist at Miller Tabak, wrote in emailed commentary. "But the path is down," he added.
The dollar rose against major U.S. trading partners, especially the Japanese yen, and Treasury prices gained, with the yield on the benchmark 10-year note down 1 basis point at 2.74 percent.
A strong finish on Wall Street last week also underpinned gains in Europe and Asia. The S&P 500 recorded its first close above 1,800 and theDow posted its longest weekly winning streak in nearly three years.
In days ahead, the focus will be on economic data ahead of Thursday's Thanksgiving holiday.
"We'll get a few further clues as to whether the Fed can afford to play Scrooge leading up to the festive season," said Deutsche Bank's Jim Reid in a morning research note, referring to the possible pace and timing of the Federal Reserve's eventual cutting back in its monthly asset purchases.
—By CNBC's Kate Gibson
Coming Up This Week:
Monday - Companies reporting after the bell include Nuance Communications, Palo Alto Networks and Workday.
Tuesday - Economic reports include building permits, home prices and consumer confidence. Companies reporting results before the bell include Hormel Foods, Tiffany and Barnes & Noble. Hewlett-Packard is among those scheduled to report after the bell.
Wednesday - weekly jobless claims.
Thursday - U.S. market closed for Thanksgiving holiday.
Friday - Early close for bond, stock markets.
More From CNBC.com: