gold ends with a gain, a day after touching its worst level of 2018