Hi Flybird2023,
You will need to complete self assessment tax returns, to declare the gains and the losses arising in the tax years 20/21, 21/22 & 22/23.
You can print of the tax returns at
Self Assessment tax return forms.
If you have a government gateway user ID and password, you can complete the tax returns online for those indate tax years and paper returns for the earlier years.
You can only do this once you have received your Uniqe Taxpayer Reference number.
Thank you.