Not exactly the whole story. Remember to take into account the "wash sale" rule with the IRS that deems certain transactions do not create a loss, if they are within 30 days of having bought a substantially similar (or in this case, exact) holding, either before or after the loss was recorded.
Not paying attention to this rule can result in many more gains than you think you have, so be careful.
Register for free to join our community of investors and share your ideas. You will also get access to streaming quotes, interactive charts, trades, portfolio, live options flow and more tools.