Shares end with strong gains