This discussion clarifies whether capital losses can be used to reduce capital gains tax. The answer is yes, you can indeed adjust a capital loss incurred from selling shares against any capital gains you may have made. This strategy can help to lower your overall capital gains tax bill.
If any particular script is sold at loss and the same day you buy lateron same script. Is capital loss can be adjusted against capital gain. In short, we want to reduce capital gain tax.