Gold set to end 2-week rally as dollar firms up