gold ends down on the day but rises in october