Gold futures mark first gain in three sessions