S&P 500 erases Iran war losses as market sentiment shifts toward diplomacy.