stocks cheer a benign july; gold, dollar suffer