Following on Karen's post on https://www.quantopian.com/posts/pipeline-in-research-build-test-and-visualize-your-factors-and-filters I tried to see if I can run a backtest for pipeline algorithm. I have not been able to get satisfying solution yet, but have some workarounds (which is documented in the notebook).
Anybody have success in doing this?
In particular, I ran into an exception when doing algorithm.run
:
---------------------------------------------------------------------------
NoEngineRegistered Traceback (most recent call last)
/build/src/qexec_repo/zipline_repo/zipline/pipeline/engine.pyc in run_pipeline(self, pipeline, start_date, end_date)
77 def run_pipeline(self, pipeline, start_date, end_date):
78 raise NoEngineRegistered(
---> 79 "Attempted to run a pipeline but no pipeline "
80 "resources were registered."
81 )
NoEngineRegistered: Attempted to run a pipeline but no pipeline resources were registered.
Which I might be able to solve by passing in the right get_pipeline_loader
into TradingAlgorithm
according to https://github.com/quantopian/zipline/blob/c09f7ab04cd52deb68cec6ecfef091ffb5992a37/zipline/algorithm.py#L192 - is this doable in the research environment?
Thanks!
boris