U.S. stocks rallied to the edge of their all-time high, and crude oil prices eased as hopes climbed that the United States and Iran may try again on talks to end their war. The S&P 500 rose 1.2% Tuesday, bringing the index within 0.2% of its record set in January. The Dow gained 0.7%, and the Nasdaq composite climbed 2%. If talks succeed and the war ends up being only a temporary setback for the global economy, investors can turn their attention back to the rising profits for companies that had markets worldwide doing well before the fighting began.