The geopolitical turmoil in Turkey is certainly making waves across the global economies, particularly in the United States where the Dow Jones Industrial Average fell over 200 points today.
The S&P tech sector was up 0.2 percent.
Entering Thursday's session, the S&P 500 was just half a percent away from reaching 2872.87, a record high set on January 26.
The Nasdaq added 27.09 points, or 0.3 percent.
Shares of Apple rose 1 percent, while those of Amazon were up 0.5 percent and Microsoft 0.3 percent.
The Russell 2000 index of smaller-company stocks fell 4.08 points, or 0.2 per cent, to 1,686.80.
The S&P 500 index slipped after coming within spitting distance of a record high following a four-day rise.
The S&P index recorded 12 new 52-week highs and 10 new lows, while the Nasdaq recorded 73 new highs and 78 new lows. In corporate news, shares of Dropbox Inc. were lower after a second-quarter earnings report, which also included news that Chief Operating Officer Dennis Woodside was stepping down and a post-IPO lockup on shares would expire earlier than previously planned.
"We seem to be able to put trade worries on the back burner and focus on second-quarter results, which have been significantly positive", said Art Hogan, chief market strategist at B. Riley FBR in NY.
All the 11 major S&P sectors were trading in the red. Shares of Apple rose 0.8 per cent, while those of Amazon were up 0.6 per cent.
Rite Aid (RAD.N) fell 11.5 percent after the drug store chain and US grocer Albertsons Cos ABS.N agreed to terminate their merger agreement. "You have banks losing because the 10-year U.S. Treasury (yield) came down".
"We have been in a tug of war between broadly positive economic conditions and the uncertainty of trade risk", said Bill Northey, senior vice president at U.S. Bank Wealth Management in Helena, Montana.
Declining issues outnumbered advancers for a 1.55-to-1 ratio on the NYSE and for a 1.20-to-1 ratio on the Nasdaq. Excluding the energy sector, the earnings growth estimate declines to 20.4 per cent.