Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Creating a New Factor in a Pipeline

I know that one way of creating a new factor in a pipeline is to create a new class that uses CustomFactor. But does the following succeed in defining a factor that quantifies how actively a stock is being traded? This way of creating a factor seems to circumvent the creation of a class.

volume_quotient = AverageDollarVolume(window_length=10)/AverageDollarVolume(window_length=60)  
pipe.add(volume_quotient, 'volume_quotient')  

Thank you.