Stocks pulled back from losses on Wednesday as crude oil recovered, though Apple (AAPL) - Get Report  continued to sour sentiment. 

The S&P 500 was up 0.09%, the Dow Jones Industrial Average rose 0.24%, and the Nasdaq slid 0.09%.

Crude oil prices bounced back late Wednesday morning after weekly inventories data showed an unexpected decline in stocks. The Energy Information Administration reported a drop of 600,000 in domestic crude barrels in the week ended Oct. 21. Analysts had expected an increase of 400,000 barrels. Prices have been under pressure on worries over domestic and international oversupply, particularly as major oil producers show reluctance to cede market share by cutting production.

West Texas Intermediate crude was flat at $49.95 a barrel on Wednesday. Prices had dropped by more than 1% earlier in the session.

Apple fell 3% after nudging past earnings and sales estimates in its fiscal fourth quarter. The world's largest company earned $1.67 a share, 2 cents above estimates, while revenue of $46.9 billion came in roughly in line. Revenue fell 9% from a year earlier, though, as sales of iPhones dropped. Profit and sales declined for the first time in 15 years. 

The number of iPhones sold over the recent quarter came in above projections with 45.5 million units sold over the quarter. Analysts predicted 44.8 million units to have been sold. The number of iPhones sold fell 5% from a year earlier, their third straight quarter in decline. Services revenue, largely seen as a growth driver for Apple, climbed 24% over the quarter.

First-quarter sales guidance between $76 billion and $78 billion came in above estimates of $75 billion. The company also expects a drop in gross margins to 38% to 38.5% in the first quarter, down from 40.1% a year earlier.

TheStreet's Jim Cramer, whose Action Alerts PLUS Charitable Trust Portfolio includes Apple, said he and co-manager Jack Mohr are taking "a longer view on the company's growth evolution, which is why we were encouraged by the company's Services business. The segment continued to deliver explosive growth on an accelerating basis, increasing 24% year over year to $6.3 billion."

New home sales moved higher in September, though a number of previous months were downwardly revised, pointing to a slow recovery despite red-hot demand. The number of sales in September rose 3.1% from a month earlier to a seasonally-adjusted annual rate of 593,000, according to the Commerce Department. September's figures were the second-highest since the recession after revisions reduced previous months' totals by 85,000.

The U.S. trade balance fell in September, according to the Census Bureau. The trade deficit narrowed by 5.2% to $56.1 billion, far better than an expected widening to $60.5 billion. Advanced wholesale inventories climbed 0.2%.

In other earnings news, Panera Bread (PNRA) surged after topping quarterly earnings estimates and posting healthy growth at its bakeries. The fast-casual chain reported a 3.4% increase in comparable bakery-cafe sales over the third quarter. Panera earned $1.37 a share, 3 cents higher than estimates, while revenue climbed nearly 3% to $684.21 million.

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

Pandora (P) fell 7% after seeing another drop in active listeners over its recent quarter, albeit a small one. The number of active listeners by the end of the third quarter slipped to 77.9 million, down 0.2% from the same quarter a year earlier. The music-streaming service reported a net loss of 7 cents a share, a penny wider than anticipated.

Chipotle (CMG) - Get Report reported a major decline in quarterly sales as the bleeding from a food-safety scandal late last year continued. The burrito chain reported a 21.9% decline in same-restaurant sales over the third quarter, while revenue slumped 14.8% to $1.04 billion. Adjusted earnings of 56 cents a share fell well short of consensus of $1.56 a share. Chipotle also said sales in October so far have dropped 21% largely tied to Hurricane Matthew. 

Boeing (BA) - Get Report  was active after a tax benefit boosted profit in its recent quarter. Profit rose to $3.60 a share from $2.47 a year ago. Adjusted earnings of $3.51 a share came in above estimates thanks to a tax benefit of 70 cents a share. Revenue fell 7.5% to $23.9 billion, but exceeded estimates of $23.64 billion.

Mondelez (MDLZ) - Get Report increased 3% after topping downbeat projections for its third quarter. Net income fell to 35 cents a share from $4.46 a share in the year-ago quarter tied to declines in its coffee business. Adjusted earnings of 52 cents a share beat estimates of 43 cents. The packaged foods company anticipates full-year sales growth of 1.6%, above projections.

Coca-Cola (KO) - Get Report jumped after a smaller-than-expected drop in quarterly profit and sales. Net income of 24 cents a share fell from 33 cents a share as a strong U.S. dollar and weakness in overseas markets dragged on results. Adjusted income of 49 cents a share edged past consensus by a penny. Revenue fell nearly 7% to $10.63 billion with foreign exchange weakness taking a 2% hit to the topline.

Southwest Airlines (LUV) - Get Report moved lower after a tech outage in July hit its quarterly results. The days-long tech troubles pulled unit revenue 4.1% lower in its recent quarter, more than a guided-for 3% to 4% decline. Unit revenue measures the amount of money generated per seat per mile. The airline's July troubles reduced overall revenue by $55 million. Sales fell 3.4% to $5.14 billion, below estimates of $5.17 billion.

Biogen (BIIB) - Get Report rose on Wednesday as sales of its multiple sclerosis drug Tecifidera boosted its quarterly earnings and sales. Adjusted earnings of $5.19 a share came in above consensus of $4.70 a share, while revenue of $2.96 billion exceeded estimates by $60 million. Sales of Tecifidera increased 10%, while Tysabri, another multiple sclerosis drug, rose 7%.