NEW YORK — Solid earnings reports Thursday drove the stock market to another record high.

Stocks rose from the start of trading after JPMorgan Chase released results that were better than analysts expected. Companies are expected to report earnings dropped again in the April-June period, but a few big ones have released numbers so far that have beaten low expectations, encouraging investors.

The gains were broad, with nine of the 10 industry sectors of the Standard and Poor’s 500 index showing gains. Banks rose the most, 0.9 percent.

“It’s really early in earnings season, but so far so good,” said Brad Sorensen, director of the Schwab Center for Financial Research. “Optimism is starting to creep into the market.”

Investors pulled money out of conservative assets such as gold and Treasury bonds, sending yields on the bonds sharply higher. They also sold stocks of utility companies, considered a haven because of their safe and steady dividends.

The Dow Jones industrial average rose 134.29 points, or 0.7 percent, to 18,506.41. The S&P 500 gained 11.32 points, or 0.5 percent, to 2,163.75. The Nasdaq composite increased 28.33 points, or 0.6 percent, to 5,034.06.

The Dow and S&P 500 remain at record highs, but the Nasdaq is barely positive for the year.

The U.S. gains followed rallies in Germany, France and Japan, with stock indexes in each of those countries rising more than 1 percent.

British stocks initially rose, then gave up the gains after the Bank of England surprised investors by holding off on cutting interest rates despite the hit to the British economy from last month’s vote to leave the European Union. The British pound soared on the news.

U.S. stocks have been on a rocky ride since the start of the year. They fell sharply in January and early February on fears that a slowdown in Chinese economic growth would drag the rest of the world into recession, then rose again, then fell after the shock of Britain’s vote.

But a strong U.S. jobs report last Friday, hopes that Japan’s ruling party will flood its market with even more money and signs of political stability in Britain as its new prime minister takes over have lifted investor spirits.

Brad McMillan, chief investment officer at the Commonwealth Financial Network, said the recent scares may have flushed out sellers, setting up the market for even bigger gains.

“Anyone inclined to sell did so” earlier, he said, “and now the market is dominated by buyers.”

Still, McMillan is worried that prices may have gotten ahead of fundamentals.

Corporate earnings are the biggest driver of stock prices, and they’re looking weak overall, notwithstanding Thursday’s batch of solid reports. Per share earnings in the S&P 500 are expected to fall 5.5 percent from the year earlier period, the fourth quarter in a row of drops, according to S&P Global Market Intelligence.

Among companies making big moves Thursday, Japanese messaging app Line surged 27 percent on its first day of trading, a gain of $8.74 to $41.58. Line has more users than Facebook or Twitter in Japan. KFC owner Yum Brands climbed $2.53, or 3 percent, to $88.27 after reporting better-than-expected profit late Wednesday.