Gold futures gain for the first time in 5 sessions