Getting started

Thank you for the info sent.  However, I don't have Capital Gains that I can claim losses for in 2022.  I do have Capital Gains in 2021, 2020 and 2019.  How can I claim these losses,  in 2022, please.  Also, can I only claim for the past three years - 21, 20 and 2019.  Thank you.