Hello,
My name is Sam, and I am currently a freshmen in college. I have a general knowledge of stocks, and how stock strategies work, but I am new to Quantopian and Python. My goal is to create an algorithm that day trades stocks based on momentum. My current issue is creating a factor that calculates momentum the way I want to. The way I want to calculate momentum or the Rate of Change is (close price 10 days ago) - ( current close price) / (close price 10 days ago) * 100. From there I want to buy stocks with a momentum score above 0 and sell the open positions once the momentum score goes below 0. Please help.