The rally reflected improving risk sentiment following reports that the U.S. and Iran have reached a peace agreement, analysts said.