Nasdaq logs best week in nearly nine months as Google jumps

It was a quiet end to an eventful week. Markets around the world rallied on Monday after Greece and its creditors agreed to a broad framework for a new loan program. Stronger quarterly earnings reports from a range of big U.S. companies, including Citigroup and JPMorgan Chase, added more encouragement.

"It appears the sky is clearing," said Linda Duessel, senior equity strategist at Federated Investors.

Stocks rising after retail sales report, earnings news

All 10 sectors of the Standard and Poor's 500 were higher. Investors were also keeping an eye on Greece a day after the country struck a preliminary deal with its creditors and a falling Chinese stock market.

VIDEO: Technical glitch halts trading on NYSE

The Exchange said in a statement that it was experiencing a "technical issue" and that it was working to resolve it as quickly as possible.

Trading continued on Nasdaq and other exchanges.

US indexes sank amid growing concerns that trouble in China's markets could spread.

"My gut is that there are bigger issues to worry about than a trading glitch," said Associated Press Business Writer Bernard Condon.