It is not a perfect system by any means.
However once you claim the loss on your year end tax return it gets rolled over year on year until it is used.
I have clients who made losses over 10 years ago and they still sit there waiting to be used.
Any profit is good, dont forget that.