Gold has largely hovered around $4,000 an ounce since late June, with a wave of dip-buying keeping the metal above the psychological threshold that some traders see as a key support.