Hi Artur,
Good question, I was also curious about this so I asked around and it looks like this doesn’t exist in the UK. HMRC have a policy for determining how much capital gains you pay on a sell which is fairly complex, you can learn about it here: Shares and Capital Gains Tax (Self Assessment helpsheet HS284) - GOV.UK
Of course it’s much easier to just keep it all wrapped in an ISA!