FILE - This Thursday, Oct. 2, 2014, file photo, shows the facade of the New York Stock Exchange. Global stock markets were trading largely higher Tuesday, April 26, 2016, as traders digested a raft of corporate earnings statements from around the world in the run-up to the latest policy decisions from the U.S. Federal Reserve and the Bank of Japan. (AP Photo/Richard Drew, File)
FILE - This Thursday, Oct. 2, 2014, file photo, shows the facade of the New York Stock Exchange. Global stock markets were trading largely higher Tuesday, April 26, 2016, as traders digested a raft of corporate earnings statements from around the world in the run-up to the latest policy decisions from the U.S. Federal Reserve and the Bank of Japan. (AP Photo/Richard Drew, File) Credit: Richard Drew

Stocks finished mostly higher Tuesday in another cautious day of trading. Energy companies climbed in tandem with the price of oil, but technology companies fell.

The market wavered between small gains and losses throughout the day. Chemicals companies made the biggest gains, led by DuPont, while energy companies benefited from higher oil prices. Health care stocks fell on more regulatory scrutiny of drug pricing. The Nasdaq composite index fell for the fourth day in a row.

Trading has been light this week. Julian Emanuel, U.S. equities and derivatives strategist for UBS, said investors are waiting to see the results of Federal Reserve and Bank of Japan policy meetings in the next few days. The Fed is expected to leave interest rates unchanged, while the Bank of Japan could take new steps to stimulate Japanโ€™s economy.

โ€œPeople are very, very wary of taking big positions,โ€ he said. โ€œThe commentary is going to be very closely parsed.โ€

The Dow Jones industrial average added 13.08 points, or 0.1 percent, at 17,990.32. The Standard & Poorโ€™s 500 index rose 3.91 points, or 0.2 percent, to 2,091.70. The Nasdaq fell 7.48 points, or 0.2 percent, to 4,888.31.

The price of benchmark U.S. crude oil jumped $1.40, or 3.3 percent, to $44.04 per barrel in New York. Brent crude, used to price international oils, gained $1.26, or 2.8 percent, to $45.74 a barrel in London.

That helped energy stocks, and ConocoPhillips rose $1.81, or 3.9 percent, to $48.08 while Pioneer Natural Resources gained $11.86, or 7.7 percent, to $165.36. Oil company BP rose $1.70, or 5.3 percent, to $33.49 after BP posted a larger-than-expected profit and it left its dividend unchanged even though oil prices and energy income has plunged.