Gold dips from 9-week top as China sets yuan higher, stocks climb