Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
data integrity issue?

For this algo, it seems there may be a data integrity issue starting at 2015-08-25:

2015-08-25PRINT[]
2015-08-25PRINT[]
2015-08-25PRINTEmpty DataFrame

Any insights?

It is coincident with the recent market turmoil, so I'm wondering if the data got mucked up?

1 response

My bad. This code removes all of the stocks from context.stocks near the end of the backtest:


for stock in context.stocks:  
        if stock.security_end_date < get_datetime() + datetime.timedelta(days=20):  # de-listed ?  
            context.stocks.remove(stock)