The precious metal is on course for a third weekly gain.