@maska Get a tax advisor. If you change tax residency and you have significant investments they'll know what to do.
You'll have to file two tax reports and the residency change date ia significant where to file your taxes for sellings.
Furthermore you need to update your w8ben timely otherwise...