The implementation is based on a pipeline and custom factors, and is a very partial implementation of some ideas in Quantitative Value. It takes quite a while to run, so getting feedback on how I can improve execution time would be really appreciated.
Thanks,
Sunil