Has anyone ever encountered the error below before? I have run hundreds of backtests on variations of the algorithm without encountering the issue before. It popped up after I changed the start and end dates of my backtest (switched from my optimization data set to my out of sample data). It makes it to a specific date (Oct. 4, 2017) then issues the error. I then ran another backtest with a start date of Nov. 1, 2017 and did not receive the error. I tried to attach the backtest, but it does not appear in the dropdown list.
Runtime Error: Index must be between 0 and 0 (entry 1 does not exist yet) (Parameter 'i')
Actual value was 1. in RollingWindow.cs:line 164
Louis Szeto
Hi Garrett
It looks like you've set the RollingWindow with size 1, so you must call its value with index 0. You might want to check the lines of referencing the RollingWindow. Yet, insifficient data is available for further debugging, please attach a backtest/relevant code snippets for further assistance.
Best
Louis
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 QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect 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. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
Garrett Grow
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 QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect 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. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!