Investors gain confidence the latest stock market rally has room to run even as the risks from the war with Iran remain