gold futures end up for the day, down for the week