The cup and handle is both a continuation and a reversal pattern. The reversal pattern marks the end of a downtrend, and shows the price transitioning into an uptrend.
https://www.investopedia.com/university/charts/charts3.asp
https://www.investopedia.com/university/charts/charts3.asp