Gold prices log highest finish since the middle of June