gold ends 0.1% higher at $1,831.70 an ounce