Gains in Apple Inc. (AAPL) shares led markets to records to begin the week, while a presidential reprimand sent healthcare names lower. 

The Dow Jones Industrial Average was up 0.37%, putting the blue-chip index at a new closing record and within 50 points of 23,000, a level never seen before. The Nasdaq increased 0.28% and secured an all-time closing high for its second session in a row. The S&P 500 also scored a new record but by mere points, rising 0.18%. 

Dow component Apple Inc. added nearly 2% after KeyBanc Capital upgraded its rating on the tech giant to overweight from sector weight, reversing a downgrade in June. Analyst Andy Hargreaves is optimistic over Apple's turn to "subscription-like qualities rather than a regular hardware business" including growth in its App Store. The firm had downgraded Apple midyear as growth in iPhone sales slowed.

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

Drug stocks were lower on Monday after President Donald Trump went after the industry. In comments at the White House, Trump said health care companies were "getting away with murder" and that drug prices were "out of control."

Insurance stocks such as UnitedHealth Group Inc. (UNH) and Aetna Inc. (AET) slumped last week after Trump made his biggest move yet to dismantle the Affordable Care Act -- the Department of Health and Human Services announced that it would cut off subsidies to health insurers under the Obama-era Affordable Care Act.

Drugmakers such as Gilead Sciences Inc. (GILD) , Pfizer Inc. (PFE) , Amgen Inc. (AMGN) , Bristol-Myers Squibb Co. (BMY) and GlaxoSmithKline PLC (GSK) were lower on Monday.

Crude oil prices rallied to their highest level in nearly three weeks on Monday as the potential for conflict in Iraq threatened to cut off exports. Reports indicated Iraqi forces have descended upon Kirkuk, a major oil-producing region in Iraq. The area had been occupied by Kurdish fighters. Troubles in the region have risen since a referendum in with the Kurds voted for independence. 

Iraq is a member of the Organization of the Petroleum Exporting Countries, a cartel that has agreed to limit production to address a global supply-demand imbalance. 

Prices were also higher after Trump refused to certify that Iran was complying with a nuclear agreement. Trump also called for new sanctions against Iran. Previous sanctions had taken roughly one million barrels of oil per day out of global supply. 

West Texas Intermediate crude oil rose 0.8% to $51.87 a barrel on Monday. 

The energy sector was one of the best performers on Monday. Major oil companies were higher, including Chevron Corp. (CVX) , Exxon Mobil Corp. (XOM) , ConocoPhillips (COP) , PetroChina Co. Ltd.  (PTR) , Total SA (TOT) , BP PLC (BP)  and Statoil ASA (STO) . The Energy Select Sector SPDR ETF (XLE) increased 0.2%. 

Federal Reserve Chair Janet Yellen boosted speculation the central bank could raise interest rates for a third time in 2017 in comments over the weekend. Despite persistently low inflation, the U.S. economy is in strong shape, Yellen said at a Group of 30 conference on Sunday, hinting that the Fed's third interest rate hike this year could come in December as many have predicted.

"Economic activity in the United States has been growing moderately so far this year, and the labor market has continued to strengthen," Yellen said, noting that the impact from hurricanes is probably ephemeral. "The ongoing strength of the economy will warrant gradual increases" in interest rates, she added.

Yellen also forecast that soft inflation readings would not persist and higher inflation would come next year on the "ongoing strengthening of labor markets."

Yellen's weekend comments taken in stride.
Yellen's weekend comments taken in stride.

Manufacturing activity in the New York region hit a three-year high in October. The Empire State manufacturing index rose to 30.2 this month from 24.4 in September, according to the New York Federal Reserve. Optimism improved, while new orders fell. 

Viacom Inc. (VIAB) and Charter Communications Inc. (CHTR) agreed on a short-term extension of their renewal deadline, a source familiar with the matter told Reuters, as the companies aim to avoid the immediate blackout of Viacom networks. If no deal is reached, 16.6 million subscribers of Charter's Spectrum service will lose Viacom's networks, such as Comedy Central, MTV and Nickelodeon, Reuters noted. 

Viacom and Charter are working to "reach a mutually beneficial deal," the source said. Viacom stands to lose $760 million, or about 16%, of its annual affiliate revenue if an agreement isn't reached, said an analyst at Gabelli & Co, Viacom's second-largest voting shareholder.

It's a busy week of earnings. Netflix Inc. (NFLX) reported better than expected earnings after the close, while Goldman Sachs Group Inc. (GS) , Harley-Davidson Inc. (HOG) , Johnson & Johnson (JNJ) , Morgan Stanley (MS)  and UnitedHealth Group Inc. (UNH)  are set for Tuesday, Oct. 17. Other earnings of note this week include Alcoa Corp. (AA) , American Express Co. (AXP)  , Verizon Communications Inc. (VZ)  , General Electric Co. (GE) and Schlumberger Ltd. (SLB) . 

TheStreet's Scott Gamm and Brian Sozzi share instant analysis of Netflix's earnings. 

General Electric and Schlumberger are holdings in Jim Cramer's Action Alerts PLUS Charitable Trust Portfolio. Want to be alerted before Cramer buys or sells those stocks? Learn more now.

Just 6% of S&P 500 companies have reported earnings so far, the majority of which have bested profit and sales estimates. Analysts anticipate blended earnings growth of 4.1% in the third quarter, or 2% excluding energy, according to Thomson Reuters estimates. Revenue is expected to rise by 4.3%.

"U.S. corporate earnings are forecasted to decelerate from earlier this year as the third-quarter reporting season gets underway," Omar Aguilar, chief investment officer of equities at Charles Schwab Investment Management, wrote in a note. "Homebuilder and insurance company results are likely to reflect the aftereffects of hurricanes Harvey and Irma, while large-cap multinational companies with significant overseas operations may have benefited from U.S. dollar weakness during the quarter."

Exelixis Inc. (EXEL) surged 17% after the Food and Drug Administration granted priority review status for its supplemental New Drug Application for a kidney cancer treatment. The drug is for untreated advanced renal cell carcinoma. The FDA based its approval on mid-stage trial results.  

Sears Holdings Corp. (SHLD) plummeted almost 12% on Monday after announcing that Fairholme Capital Management's Bruce Berkowitz was stepping down from the board of directors at the end of October. Berkowitz acts as chief investment officer at Fairholme. The investment firm was Sears' second-largest shareholders as of the end of June. 

Athletic apparel companies were lower on Monday on reports Amazon.com Inc. ( AMZN) will design and sell its own line. Foot Locker Inc. ( FL) , Hanesbrands Inc. ( HBI) , Deckers Outdoor Corp. ( DECK)  and Lululemon Athletica Inc. ( LULU) declined. 
 

More of What's Trending on TheStreet:

Join us in New York City on Nov. 30 for The Deal Economy Conference, where leading industry experts and other influential members of the deal community will gather to discuss key issues that will confront dealmakers in 2018.

Join Jim Cramer, CNBC's Jon Najarian and Other Experts Oct. 28 in New York

Jim Cramer will host CNBC's Jon Najarian, TD Ameritrade's JJ Kinahan, famed analytics expert Marc Chaikin and other market mavens on Oct. 28 in New York City to share successful strategies for active investors.

You can join them as they discuss how smart investors can make the most of options trading, futures contracts, fundamental and quantitative analysis and great ETFs to buy right now. Participants will also get a chance to meet Jim and other panelists and take photos.

When: Saturday, Oct. 28, 8 a.m.-3 p.m.

Where: The Harvard Club of New York, 35 West 44th St., New York, N.Y.

Cost: $250 per person.

Click here for the full conference agenda or to reserve your seat now.

More from Futures

Futures Tumble on Tariff Reports and 4 Other Stories to Watch Friday Morning

Futures Tumble on Tariff Reports and 4 Other Stories to Watch Friday Morning

Markets Wobble as U.S. Readies More China Tariffs

Markets Wobble as U.S. Readies More China Tariffs

Comcast's Bid for Fox Assets and 4 Other Stories to Watch Premarket Thursday

Comcast's Bid for Fox Assets and 4 Other Stories to Watch Premarket Thursday

AT&T-Time Warner Merger Wins Approval and 4 Other Stories To Watch Wednesday

AT&T-Time Warner Merger Wins Approval and 4 Other Stories To Watch Wednesday

U.S. and North Korea Sign Agreement and 4 Other Stories to Watch Tuesday

U.S. and North Korea Sign Agreement and 4 Other Stories to Watch Tuesday