The Nasdaq and the S&P 500 indexes inched higher in volatile trading on Friday as megacap stocks gained ground, while investors assessed talks between President Joe Biden and his Chinese counterpart Xi Jinping over the Ukraine conflict. Seven of the 11 major S&P sectors were lower, with energy stocks and utilities falling the most. Nvidia, Tesla, Apple, and Microsoft rose between 0.7 percent and 5.9 percent, boosting the tech-heavy Nasdaq. Xi told Biden that conflicts and confrontations such as the events unfolding in Ukraine are in the interests of no-one, according to Chinese state media. “The geopolitical concerns are responsible for the vast majority of the market movement this week despite the fact that the Fed hiked interest rates,” said Randy Frederick, vice president of trading and derivatives for Charles Schwab in Austin, Texas. “China is kind of involved a little bit more today than normal, and that’s obviously a …