Change of State and Stock Sale

I lived in NJ until October 2019 when I moved to PA.

 

I may sell stock now in December 2019.

 

Which state tax form will have the effect of the stock sale?  I realize I will have two states to file for 2019.