gold ends up almost $6, extends rise to after hours