gold swings between gains and drops on dollar, easing outlook