Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Pipeline API Backtest in Research Environment

I tried to backtest my algo using Research Environment. I have done couple backtests in Research Environment before. However, I am using Pipeline API in my algo this time. I am wondering whether anyone has any clue about how to backtest an algo that uses Pipeline API.

I got some error message when I tried to import the following modules.

from quantopian.algorithm import attach_pipeline, pipeline_output  
from quantopian.pipeline import Pipeline  
from quantopian.pipeline import CustomFactor  
from quantopian.pipeline.data.builtin import USEquityPricing  
---------------------------------------------------------------------------  
ImportError                               Traceback (most recent call last)  
<ipython-input-1-bb743a4479e9> in <module>()  
     23 import time  
     24  
---> 25 from quantopian.algorithm import attach_pipeline, pipeline_output  
     26 from quantopian.pipeline import Pipeline  
     27 from quantopian.pipeline import CustomFactor

ImportError: No module named algorithm

2 responses

I ran into this same issue and would also like to know how to run a Pipeline API backtest in Research.