Gold prices rise as the dollar retreats