The S&P 500 and Nasdaq edged higher as strong bank earnings and hopes of easing U.S.-Iran tensions supported sentiment. Investors balanced geopolitical risks, elevated oil prices, and Federal Reserve uncertainty, while markets showed resilience with tech gains and financial stocks leading despite mixed sector performance.