Gold futures score first gain in 5 sessions