The Nasdaq and the S&P 500 closed in positive territory on Monday boosted primarily by technology shares. The technology sector gained for the second successive session led by increase in shares of tech stalwarts such as Apple, Facebook and Microsoft. Energy shares moved north due to uptick in oil prices following news that Libya and Nigeria have been requested by other OPEC members to join the producer bloc’s meeting scheduled to be held later this month.For a look at the issues currently facing the markets, make sure to read today’s Ahead of Wall Street article.The Dow Jones Industrial Average (DJI) declined marginally by 5.82 points to close at 21,408.52. The Dow was dragged down primarily by decline in shares of Wal-Mart Stores Inc. WMT. The S&P 500 advanced 0.1% to end at 2,427.43. The tech-heavy Nasdaq Composite Index advanced 0.4% to finish at 6,176.39. A total of around 5.6 billion shares were traded on Monday, lower than the last 20-session average of 6.9 billion shares. Advancers outnumbered declining stocks on the NYSE by a 1.05 to 1 ratio.Technology Shares Continue to GainTechnology shares continued to rise on Monday, lifting the Nasdaq and the S&P 500 higher. Gain in shares of major tech stalwarts such as Facebook, Apple and Microsoft helped the technology sector to finish in positive territory.Shares of major technology companies including Facebook FB, Apple AAPL and Microsoft MSFT recorded gain of 1.4%, 0.6% and 0.8% respectively. The broader Technology Select Sector SPDR (XLK) advanced 0.7%, emerging as the best performing sector of the S&P 500. You can see the complete list of today’s Zacks #1 Rank (Strong Buy) stocks here.Energy Shares Move NorthOil prices moved north on Monday, recovering from a steep decline of almost 4% last week. Prices ended higher following news that Libya and Nigeria have been invited to OPEC’s meeting scheduled to be held later this month. Both these countries were not involved in the pre-existing OPEC pact aimed at curtailing oil production and easing out excess global supply.A recent increase in crude production from Libya and Nigeria heightened concerns regarding an already oversaturated global oil market. As per JBC, crude production has gone up in Libya to more than one million barrels per day (bpd), while Nigeria has increased its output to 1.6 million bpd. As per a Wall Street Journal report, both of these countries were invited to a meeting of leading oil producers on July 24 to discuss their soaring crude production. This development had a positive impact on investor sentiment, which ultimately had a positive impact on oil prices.The increase in oil prices had a positive impact on the energy shares, which in turn had a positive impact on the broader markets. WTI crude prices advanced by $0.17, or 0.4%, to $44.40 a barrel. The broader Energy Select Sector SPDR (XLE) advanced 0.3%. Some of its key holdings, including EOG Resources EOG and Halliburton Co HAL both increased 1.3%.All Eyes on Q2 Earnings SeasonInvestors also remained focused on the second quarter earnings season due to begin this week with major banks including JPMorgan Chase JPM, Wells Fargo WFC and Citigroup C scheduled to report on Friday.Economic DataAccording to the Federal Reserve, U.S. consumer credit recorded an increase of 5.8% or by $18.4 billion, marking its biggest increase in seven months. Revolving credit such as credit cards rose 8.7% whereas non revolving credit like auto and student loans experienced an increase of 4.7%.Stocks that made HeadlinesGol Linhas June Load Factor Improves, Stock JumpsGOL Linhas Aereas Inteligentes S.A.’s GOL shares rose 7.75%, following the announcement of traffic results for June. (Read More)Will Citrix Systems Thrive Under New CEO David Henshall?Fort Lauderdale-based Citrix Systems CTXS named David J. Henshall as its new president and chief executive officer (CEO) with immediate effect. (Read More)More Stock News: 8 Companies Verge on Apple-Like Run Did you miss Apple's 9X stock explosion after they launched their iPhone in 2007? Now 2017 looks to be a pivotal year to get in on another emerging technology expected to rock the market. Demand could soar from almost nothing to $42 billion by 2025. Reports suggest it could save 10 million lives per decade which could in turn save $200 billion in U.S. healthcare costs. A bonus Zacks Special Report names this breakthrough and the 8 best stocks to exploit it. Like Apple in 2007, these companies are already strong and coiling for potential mega-gains. Click to see them right now >>Want the latest recommendations from Zacks Investment Research? Today, you can download 7 Best Stocks for the Next 30 Days. Click to get this free report Gol Linhas Aereas Inteligentes S.A. (GOL): Free Stock Analysis Report J P Morgan Chase & Co (JPM): Free Stock Analysis Report Wells Fargo & Company (WFC): Free Stock Analysis Report Citigroup Inc. (C): Free Stock Analysis Report Facebook, Inc. (FB): Free Stock Analysis Report Apple Inc. (AAPL): Free Stock Analysis Report Microsoft Corporation (MSFT): Free Stock Analysis Report Citrix Systems, Inc. (CTXS): Free Stock Analysis Report Halliburton Company (HAL): Free Stock Analysis Report EOG Resources, Inc. (EOG): Free Stock Analysis Report Wal-Mart Stores, Inc. (WMT): Free Stock Analysis Report To read this article on Zacks.com click here. Zacks Investment Research