US stocks have closed little changed as investors weigh a weak US housing market report and a breakthrough deal between Iran and major powers over its controversial nuclear program.

US stocks have closed little changed as investors weigh a weak US housing market report and a breakthrough deal between Iran and major powers over its controversial nuclear program.