You would have capital gains the year that you sold the stock. You must report your stock transactions for 2019 in 2019.
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"