I am working on a side project involving stocks and programmatically minimising capital gain taxes (e.g. using Australia's 50% CGT discount) and I'm happy to discuss it. I am not sure but I think UK's capital gains tax law have similar opportunities. I put my email in my profile.