NEW YORK -- U.S. stocks perked higher on Thursday, and the Standard & Poor's 500 index was on track to rise for the first time in five days. Industrial and technology companies helped lead the way.
Crude oil and energy stocks clawed back some of their sharp losses from Wednesday. So did Asian stock markets.
KEEPING SCORE: The Standard & Poor's 500 index was up 8 points, or 0.3 percent, at 2,637 as of 3:27 p.m. Eastern time. If the S&P 500 remains higher at the end of the day, it would snap the longest losing streak for the index since March. Losses over that span have been modest, though, with the index never dropping more than 0.4 percent in a day in that stretch.
The Dow Jones industrials average rose 55, or 0.2 percent, to 24,196, and the Nasdaq composite gained 30, or 0.4 percent, to 6,806.
UP AND DOWN, WEEK: Markets have drifted sideways this week, as Congress finalizes its proposal to overhaul the tax system. The House and Senate are trying to iron out differences in their respective plans, each of which would create slightly different winners and losers among corporate taxpayers. In the meantime, investors have been trying to shift to areas of the market that they see ultimately benefiting the most.
Stocks may continue to drift until investors get more clarity on what the final tax proposal will be, said Tom Stringfellow, chief investment officer at Frost Investment Advisors.
"The market has already been bid up on anticipation of this, and the real test will be what do both houses come up with and what is put on the president's desk to sign," he said.
In the meantime, a strengthening global economy and climbing corporate earnings are supporting stock prices. "We have seen so many positives flow through, from Europe to Asia to global trade," Stringfellow said. "It's just those wild cards out there," such as a potential conflict with North Korea, that worry investors.
TECH RECOVERY: Technology stocks were some of the markets' better performers, shaking off an uncharacteristic weak stretch. The industry has been the market's biggest winner this year, but it stumbled in recent days on expectations that it will benefit less from lower tax rates than financial companies, retailers and other areas of the market.
Tech stocks in the S&P 500 rose 0.5 percent, the third-biggest gain among the 11 sectors that make up the index. They trimmed their loss for the week to 0.5 percent.
BIT MORE ENERGETIC: Energy stocks recovered some of their losses from a day earlier as the price of oil ticked higher.
Benchmark U.S. crude added 73 cents to settle at $56.69 per barrel and recovered a chunk of its $1.66 loss from Thursday. Brent crude, the international standard, rose 98 cents, or 1.6 percent, to $62.20 a barrel in London.
That helped energy stocks in the S&P 500 rise 0.2 percent.
ECONOMY: More evidence that the job market is strengthening arrived after a government report showed that fewer workers filed for unemployment benefits last week. The numbers are considered a proxy for layoffs, and they offer an encouraging sign that the U.S. labor market continues to improve.
On Friday, the government will release its closely watched monthly jobs report. If it shows as much strength as economists expect, the Federal Reserve will likely be on track to raise interest rates at its meeting next week. It would be the third rate increase of the year.
YIELDS: The yield on the 10-year Treasury note rose to 2.36 percent from 2.34 percent late Wednesday.
CURRENCIES: The dollar rose to 113.11 Japanese yen from 112.28 yen late Wednesday. The euro dipped to $1.775 from $1.1793, and the British pound rose to $1.3465 from $1.3375.
COMMODITIES: Gold fell $13.00 to settle at $1,253.10 per ounce, silver lost 15 cents to $15.80 per ounce and copper was close to flat at $2.96 per pound.
Natural gas fell 16 cents, or 5.4 percent, to $2.76 per 1,000 cubic feet, heating oil rose 4 cents to $1.90 per gallon and wholesale gasoline added 4 cents to $1.70 per gallon.
MARKETS ABROAD: Japan's Nikkei 225 index rose 1.4 percent following its worst day since March, a 2 percent loss. The Hang Seng in Hong Kong rose 0.3 percent, and South Korea's Kospi lost 0.5 percent.
Germany's DAX rose 0.4 percent, the FTSE 100 in London dipped 0.4 percent and France's CAC 40 gained 0.2 percent.