gold swings between gains and drops on stronger dollar