I think you may be confusing IP's which are 'sold' at market rate once you become a non-resident.
Any shares held before you become a non-resident, and sold (irrespective of status) have to be reported for the gain/loss. But any shares bought and sold during the period you're a non-resident...