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

Hello,

I'm trying to get going with the Research Platform (Notebook). To get started, I'm trying a pretty simple algorithm of just buying or selling monthly, but on different dates of the month. I got the algorithm running just fine in the normal backtester. Now trying to get it running in the notebook.

Getting an error when trying to run it:

ValueError: initial_dates must be of length window  

Any ideas what that could be?

1 response

In case anyone else finds this, I figured out the issue.

I was using the add_history call incorrectly. It did not contain enough history. Make sure the first parameter to add_history is at least as long as the furthest back your algorithm will look for data.