gold edges up, as dollar recovers some losses