Yes but if at the end of tax year you end up with overall loss, that's what should matter.. Not that you pay tax on each profitable transaction but not set off loss making ones.
See separate point re losses that happen next year that's tough luck lol. Govt not gonna help. Unless you go fully bust and they have nothing to collect.