Gold edges up ahead of G20 meeting; set to post second weekly gain