Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Backtest failing to start before start date of 2017!

Has anyone had any issues today with running backtests? This is a code that runs fine without any issues but suddenly if I try to run it starting earlier than 2018 I get the below error.

Something went wrong. Sorry for the inconvenience. Try using the built-in debugger to analyze your code. If you would like to help, send us an email.

but earlier start dates such as 1/1/2019 runs ok?! its seems like a data issue !!>>

8 responses

To be precise it fails as I pull the date before 11/01/2016

Very strange !!!

Sorry to see you are getting errors. If you are still seeing this problem perhaps attach a backtest. It would be easier to help troubleshoot by seeing the code. Maybe as a start, try commenting out sections of code to narrow down the offending line(s)?

Disclaimer

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by Quantopian. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. No information contained herein should be regarded as a suggestion to engage in or refrain from any investment-related course of action as none of Quantopian nor any of its affiliates is undertaking to provide investment advice, act as an adviser to any plan or entity subject to the Employee Retirement Income Security Act of 1974, as amended, individual retirement account or individual retirement annuity, or give advice in a fiduciary capacity with respect to the materials presented herein. If you are an individual retirement or other investor, contact your financial advisor or other fiduciary unrelated to Quantopian about whether any given investment idea, strategy, product or service described herein may be appropriate for your circumstances. All investments involve risk, including loss of principal. Quantopian makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances.

Dan, Thanks for offering to help. It seems like something broke yesterday !!! Perhaps has to do something with the release of some of the new datasets

Here is a sample code. It fails to start before 2016 but works fine in 2017. I stripped this off a piece of perfectly working algo that suddenly fails to execute before a certain date. It seems like something happened to the filter model! My other filter that's in the code too fails during the same date ranges!

@ kamran

Something is odd with the behavior of Fundamentals.priceto_cash_ratio.latest. If you delete that line from the pipe definition it seems to work. Check if you experience the same. We're looking at it internally to see what's going on.

Attached is a stripped down version which highlights the issue. It runs starting in 2017 but generates an error if started in 2016. Actually it seems to start around October 27, 2016.

Again, sorry for the inconvenience.

I removed the field and I can run it now. It's strange as I had removed a bunch of these fields before and it also failed a few times.

As I mentioned this broke yesterday for some reason. I am not sure if it's related to any of the new data sets. Also, we had a failed data load on Monday. Don't know if any of it is related but thought to mention it,

Thanks again for your help.

Dan here is another issue!

if you add the below screen to the pipe (with a new data column) the backtest fails again starting before 2008! It runs ok after 1/1/2008 !!!

def make_pipeline():
pipe = Pipeline(
columns={'fcf':Fundamentals.free_cash_flow.latest,},
screen= Fundamentals.limited_partnership.latest.isnull()
)
return pipe

Additionally, its late Saturday afternoon and the Friday's data is still not loaded in the system. Something is going on with the data at Q lately!

This also is failing to start again starting 2003!

Also, this field is an issue too

Fundamentals.limited_partnership.latest,

Would be great to get to the bottom of this issue.

Thanks