Hi,
You can set the loss from one asset against the gain of another in the same tax year. This would be visible in the evidence provided when declaring the gain.
If the loss is declared in a previous tax year it can be carried forward and set against the gain, again supported by evidence when declaaring the gain. The rule is 30 days and no more.
Have a look at:
CG13370
Thank you.