Stocks finish mildly higher as energy offsets tech

Getty Images

U.S. stocks finished modestly ahead on Monday after the first weekly gain for equities in 2015, as investors mulled results from Greek elections and winter weather on the East Coast.In Greece, the anti-austerity Syriza party won 149 out of a 300 possible seats in Parliament.The market had "already discounted an anti-austerity vote, and the lower euro should boost manufacturing and exports," Peter Cardillo, chief market economist, Rockwell Global Capital, said."Investors are bracing for a potentially historic northeast blizzard and the FOMC meeting this week," Cardillo said.In New York, officials urged residents to remain indoors with blizzard conditions forecast. The New York Stock Exchange said it planned to run on a normal schedule.DR Horton (DHI) rose after the home builder reported quarterly profit that topped estimates; Mattel (MAT) declined after the toy maker ousted its chairman and chief executive and warned sales fell 6 percent in the holiday quarter. After falling more than 100 points, the Dow Jones Industrial Average (Dow Jones Global Indexes: .DJI) gained 6.10 points to 17,678.70.The S&P 500 (^GSPC) added 5.24 points, or 0.3 percent, to 2,057.06, with energy the best performing and technology the worst of its 10 major industry groups.The Nasdaq (^IXIC) gained 13.88 points, or 0.3 percent, to 4,771.76.For every share falling, roughly two rose on the New York Stock Exchange, where 647 million shares traded as of 4 p.m. Eastern. Composite volume cleared 3.2 billion. On the New York Mercantile Exchange, U.S. crude (New York Mercantile Exchange: @CL15H) wavered before closing down 44 cents, or 1 percent, at $45.15 a barrel, and gold futures (CEC:Commodities Exchange Centre: @GC15G) shed $13.20, or 0.1 percent, to $1,279.40 an ounce.The U.S. dollar (Exchange:.DXY) gained against the currencies of major U.S. trading partners; the yield on the 10-year Treasury (U.S.:US10Y) note used to figure mortgage rates and other consumer loans rose 2 basis points to 1.8226 percent. U.S. stocks mainly fell on Friday, with the S&P 500 halting a four-session winning run, as investors considered economic data, energy costs and a reduced 2014 earnings estimate from United Parcel Service. Read More Stocks mostly fall, curbing first weekly advance in 4 Coming Up This Week: Tuesday 8:30 a.m. Eastern: Durable-goods orders for December9 a.m.: Case-Shiller home prices for November10 a.m.: Consumer-confidence index for JanuaryWednesday 2 p.m.: FOMC announcementThursday8:30 a.m.: Weekly jobless claims10 a.m.: Pending-home sales for DecemberFriday8:30 a.m.: Fourth-quarter GDP9:55 a.m. Consumer-sentiment index for January More From CNBC.com: Airlines pre-emptively cancel 3,500 flights Gas bottom near as prices hit six-year low: Survey Chris Christie gearing up for 2016 prez run: WSJ