NEW YORK - U.S. stocks were little changed, after the Standard & Poor’s 500 Index briefly climbed above its previous closing record, as better-than-forecast corporate results offset a slump in commodities producers.

NEW YORK - U.S. stocks were little changed, after the Standard & Poor’s 500 Index briefly climbed above its previous closing record, as better-than-forecast corporate results offset a slump in commodities producers.


Hasbro Inc. jumped 6.3 percent on better-than-estimated earnings, while Halliburton advanced 1.8 percent after its profit fell less than predicted. Apple rose 1.9 percent to pace gains in technology shares. Newmont Mining lost 12 percent, while energy shares declined with oil prices. International Business Machines fell in late trading after quarterly revenue missed analysts’ estimates.


The S&P 500 increased 0.1 percent to 2,128.28 at 4 p.m. in New York, to close within three points of an all-time high set two months ago. The Dow Jones industrial average climbed 13.96 points, or less than 0.1 percent, to 18,100.41. The Nasdaq composite index gained 0.2 percent to extend its record. About 6.3 billion shares changed hands on U.S. exchanges, in line with the three-month average.


"While I wouldn’t be shocked if we move to new highs, the market may hesitate here," said Mark Luschini, chief investment strategist in Philadelphia at Janney Capital Management, which oversees about $68 billion. "The earnings that we’ve gotten so far have been better than expected. M&A activity remains alive and well, so that’s a positive."


The S&P 500 had lost as much as 4 percent from its May 21 record before rebounding, with most of the gains coming during a 2.4 percent rally last week amid signs that Greece’s standoff with creditors is near a conclusion and a rout in Chinese equities has been contained.


The next 10 percent move in the U.S. equities market will be higher as low analyst earnings forecasts, a rising economy and muted investor sentiment paves the way for further gains, Morgan Stanley chief U.S. equity strategist Adam Parker wrote in a note to clients on Monday. "Why sell the market when numbers are too low, the economy is improving, and you can still romanticize that you are a contrarian bull?" Parker said.


While benchmark indexes are climbing back to record levels, the S&P 500’s rebound kept it within a historically tight range. The gauge hasn’t closed in 2015 more than 3.5 percent above or below where it started the year, the first time that’s happened, according to data compiled by Bespoke Investment and Bloomberg.


"There’s quite a while to go before this particular bull market ends," Omega Advisors Steven Einhorn said on Sunday on the television program "Wall Street Week," predicting the rally since 2009 has at least another two years left.


The vice chairman of the New York-based hedge fund, which oversees more than $9 billion, said economic fundamentals remain strong and the pace of the Fed’s interest-rate tightening is likely to be gradual, boding well for equities.


Earnings season will draw more attention as the flow of quarterly reports increases this week, with about 25 percent of companies in the S&P 500 scheduled to release results. Analysts have moderated projections for a drop in S&P 500 members’ second-quarter earnings to a 5.3 percent decline from 6.4 percent on July 10.


IBM lost 4.4 percent after hours as of 4:49 p.m. Quarterly earnings beat analysts’ estimates as reduced administrative and research costs helped offset a decline in its services and software businesses. Revenue fell more than analysts estimated from a year earlier, the 13th straight quarterly decline. Shares had gained 0.4 percent during regular trading Monday.


Investors will also watch economic reports for clues on when the Federal Reserve will move on interest rates, with housing and jobless-claims data due later this week.


The Chicago Board Options Exchange Volatility Index rose 2.5 percent Monday to 12.25 after Friday reaching its lowest level since December. The gauge, know as the VIX, tumbled 29 percent last week, the biggest such slide since January.


Technology and phone companies advanced the most among the S&P 500’s main industries, while energy and raw-material companies were the worst-performing groups. Banks in the benchmark rose for the seventh time in eight sessions.


Apple gained 1.9 percent to a two-month high, rising for a fourth consecutive day to help lift the tech group. Visa rallied 2.6 percent to a record, and Texas Instruments climbed 1.5 percent after UBS raised the shares to buy from neutral. PayPal rose 5.4 percent, and earlier as much as 11 percent, in its market debut after separating from EBay.


Hasbro rose 6.3 percent to an all-time high. The toymaker’s second-quarter profit and sales beat analysts’ estimates, helped by merchandise tied to the "Jurassic World" summer blockbuster.


Halliburton added 1.8 percent as results in North America were better than expected due to cost-cutting efforts and higher sales than analysts were forecasting.


Lockheed Martin increased 2 percent to an almost five-month high after agreeing to buy United Technologies’ Sikorsky helicopter unit for $9 billion and said it expects to divest its government information systems division via a sale or spinoff.


Southwestern Energy and Chesapeake Energy lost at least 5.9 percent as West Texas Intermediate crude declined for a fourth straight session on the prospect that increasing Iranian shipments will extend the global supply glut. Energy shares capped their worst two-day drop since January.


Newmont led declines in raw-materials, losing the most since Oct. 2008 as gold prices fell to the lowest since 2010. Barrick Gold tumbled 16 percent to a 25-year low, and Freeport-McMoRan slid 5.2 percent. The Bloomberg commodity index was down 1.4 percent, closing at a 13-year low.


Raw materials are losing favor with investors as the dollar gains amid signals from Fed Chair Janet Yellen that the central bank may raise rates this year on the back of an improving U.S. economy. Higher borrowing costs curb the attractiveness of commodities such as gold, which doesn’t pay interest or give returns like assets including bonds and equities.


"We’ve seen a resumption of a rally in the dollar and if you do the math, that’s bad for commodity prices," said Peter Sorrentino, a Cincinnati-based fund manager at Huntington Asset Advisors, which oversees $1.8 billion.


—-


With assistance from Roxana Zega in Zurich.