Well if you have alot of net capital losses from trading in prior years you can carry those capital losses forward to deduct from your current years gain from any sales of stocks.
I myself am hoping to benefit from this since I had some bad losses several years ago.