Hi Ernesto,
I am getting the following error when I clone and run the first algorithm in this section "https://www.quantopian.com/help#sample-futures". Futures Trend Follow. This algorithm is a very simple example of a trend follow example that trades 9 different futures. It is an adaptation of the simple example used by Andreas Clenow in his book Following the Trend.
Backtest Error:
Something went wrong. Sorry for the inconvenience. Try using the built-in debugger to analyze your code. If you would like help, send us an email.
NoDataAfterDate: No data on or after day=2015-08-21 00:00:00+00:00 for sid=1034201506
There was a runtime error on line 63.
Backtest period: 2015-07-01 to 2017-07-01 with $10,000,000 initial capital.
I have tried several different periods as well as removing the selection of futures under consideration. I keep hitting the same error a month or two after the start period in line #63 (code below).
hist = data.history(context.my_futures, 'price', 100, '1d')
It appears the continuous futures is not working as expected since some future went beyond its close date?
Could you suggest what I need to change in the algo to get past this error.