Is there a way I can make a moving linear regression of just price for each stock, and compute the slope and r-squared of the line as custom factors? I'm thinking something like this example with visa. I want the slope and r-squared as custom factors so I can use .top() or .bottom() for my universe.