Stocks added to session highs on Tuesday as gains in the financials and energy sectors boosted markets. 

The Dow Jones Industrial Average was on track to snap an eight-session losing streak, rising 0.84% or 170 points. The S&P 500 was up 0.9%, and the Nasdaq added 0.8%.  

Crude oil prices moved higher ahead of weekly inventories data from the American Petroleum Institute Tuesday and official data from the Energy Information Administration on Wednesday. Expanding stockpiles and increasing production in the U.S. have hit crude oil prices in recent weeks.

West Texas Intermediate crude was up 1.7% to $48.53 a barrel on Tuesday.

Energy stocks were the best performers on markets Tuesday. Major oil companies Royal Dutch Shell (RDS.A - Get Report) , Chevron (CVX - Get Report) , Schlumberger (SLB - Get Report) , Enbridge (ENB - Get Report) and ConocoPhillips (COP - Get Report) saw modest gains, while the Energy Select Sector SPDR ETF (XLE - Get Report) added 1%.

Schlumberger is a holding in Jim Cramer's Action Alerts PLUS Charitable Trust Portfolio. Want to be alerted before Cramer buys or sells SLB? Learn more now.

Financials crept higher on Tuesday after a days-long retreat. Banks such as JPMorgan (JPM - Get Report) , Citigroup (C - Get Report) , Royal Bank of Canada (RY - Get Report) and Westpac (WBK) saw slight gains. Goldman Sachs (GS - Get Report) and JPMorgan led the Dow.

Citigroup is a holding in Jim Cramer's Action Alerts PLUS Charitable Trust Portfolio. Want to be alerted before Cramer buys or sells C? Learn more now.

The Federal Reserve's Stanley Fischer straddled the line between dove and hawk. Fed Vice Chairman Fischer told CNBC that a "wait and see" policy was suitable for the Fed and that he anticipates two more interest rate hikes this year, in line with central bank estimates. Fischer also said the Fed keeps an eye on fiscal policy, a crucial move as Donald Trump tries to reform the tax code. Stocks have responded well to a Fed that has faith in the U.S. economic recovery but tightens monetary policy deliberately and gradually. 

Areas of high unemployment remain in the U.S. economy even as the overall trend continues lower, Fed Chair Janet Yellen said on Tuesday. In remarks to the National Community Reinvestment Coalition, Yellen said interest rates are not the best way to correct the issue, but rather "effective workforce development options for these communities," including vocational trading and apprenticeships. Yellen said low-income and minority groups are most at risk of these high unemployment trends.

The Dow looked likely to snap its longest losing streak since 2011. The Dow ended Monday in the red, its eighth day of losses in a row and its longest losing streak since August 2011. Stocks were under pressure for much of the day as Wall Street contemplated the way forward for the Trump White House after its defeat on health care reform.

The GOP's failure to repeal and replace Obamacare, a major campaign commitment, was viewed as a litmus test for Trump's ability to achieve major change in Washington. The Dow hasn't finished higher since March 15 when the sheen of the Trump presidency began to fade.

Trump had promised major tax reform and regulatory rollbacks, both which look like tougher sells after the clumsy handling of health care reform -- the bill appeared to be rushed through and was pushed toward a vote even without a healthy margin of support in Congress. The bill was pulled late Friday afternoon after two days of voting delays. House Speaker Paul Ryan said Tuesday that he had not formulated a timeline for a fresh attempt at health care reform. 

"The burden of proof for U.S. equities just got a little higher," said David Joy, chief market strategist at Ameriprise Financial. "The failure of health care reform means that the job of tax reform has now been made more difficult. And that is what the market cares more about ... If there is to be a rethinking of equity valuations, it should be limited on the downside by these improving fundamentals. But, there is still room for disappointment if tax reform fails to impress."

Consumer confidence surged in March, continuing upward trends seen in the past few months. Confidence rose to a reading of 125.6 in March, according to the Conference Board, the highest level since December 2000. The index sat at 116.1 in February. Analysts had anticipated a small dip in March after the index reached a post-recession high last month. 

Apple (AAPL - Get Report) moved higher and was on track for another record close on Tuesday after UBS backed its support for the tech company. UBS analyst Steven Milunovich said he could see Apple reaching as high as $200 over the next few years, 40% above its current trading levels, though said his "most likely scenario" was gains to $175. 

Apple is a holding in Jim Cramer's Action Alerts PLUS Charitable Trust Portfolio. Want to be alerted before Cramer buys or sells AAPL? Learn more now.

Ford (F - Get Report) rose more than 2% on Tuesday after announcing plans to "create or retain" 130 jobs at its plant in Michigan. The jobs are part of the automaker's plans to increase capacity at its Romeo Engine factory, one of the ways in which Ford will invest $1.2 billion in three of its plants in the state. 

Competitor General Motors (GM - Get Report) was also higher after investor David Einhorn pushed for the company to generate two classes of stock to divide its dividends from earnings, such as stock repurchases. Einhorn said the plan would unlock significant shareholder value. GM has rejected Einhorn's suggestion. Credit agencies including Moody's said that Einhorn's proposal would likely cause a credit rating downgrade. 

The advanced trade deficit in the U.S. declined by 5.9% in February to $64.8 billion. Wholesale inventories increased by 0.4%, while retail inventories rose 0.4%. 

Home prices rose in January, according to the S&P Corelogic Case-Shiller home price index. The measure increased 0.9%, reaching a 31-month high. Analysts anticipated the index to rise 0.7%. 

American Airlines (AAL - Get Report)   took a $200 million stake in China Southern Airlines (ZNH) in the second move by a U.S. carrier into the world's fastest-growing commercial aviation market. American will own about 2.68% of China Southern's outstanding shares after paying $1.55 billion Hong Kong dollars ($200 million) for a special issue of 270.6 million shares sold Tuesday by China Southern, which is Asia's biggest commercial airline by traffic.

Amazon (AMZN - Get Report)  purchased for an undisclosed amount, making a significant step into the growing Middle Eastern e-commerce space. had originally been offered $800 million from Dubai-based Emaar Malls, according to reports. The deal is expected to close this year.  

Red Hat (RHT)  exceeded quarterly estimates. The software developer earned an adjusted 61 cents a share, meeting consensus, while revenue of $629 million came in higher than $618.6 million. For the full year, Red Hat anticipates adjusted earnings of $2.60 to $2.64 a share, above consensus of $2.59.  

Tesla (TSLA - Get Report) increased more than 2% after a disclosure showed Tencent acquired a 5% stake in March. Hong Kong-based Tencent purchased around 8.2 million shares this month for roughly $1.8 billion.  

Carnival (CCL - Get Report) topped quarterly earnings estimates and guided for in-line second-quarter profit. The cruiseline operator earned an adjusted 38 cents a share, 3 cents above estimates. Onboard revenue of $978 million came in above estimates of $961.9 million. Ticket revenue climbed to $2.8 billion from $2.72 billion. For the second quarter, Carnival anticipates 43 cents to 47 cents a share in profit compared to 46 cents consensus. 

FactSet (FDS - Get Report) fell 4.8% following a mixed second quarter. The database company earned $1.81 a share over the quarter, edging past consensus by a penny, while revenue of $294.35 a share fell short of estimates by just $1.7 million. For the third quarter, FactSet anticipates adjusted earnings of $1.80 to $1.86 a share, in-line with a target of $1.84.