gold futures head lower, but trades higher for the week