Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Help converting one of the momentum factors in the Quantopian Lecture series to a factor

Hi,

I am attempting to convert one of the momentum strategies in the original lecture to a factor to look at with Alphalens.

Not sure if I am approaching it correctly but cant get the ranking on the various moving averages to work to pass to the distance function.

Have done some work on the thickness which works

Paul