IMO both Haspete and Oz are correct in different ways. If held on revenue account your shares can be valued at the lower of cost and market value. If on capital account an actual disposal is required - this is only beneficial if you have capital gains to offset.