Back

Runtime error: the given key was not present in the dictionary

Trying to backtest a simple breakout strategy from Following the Trend (Clenow): https://www.dropbox.com/s/y038hdw6deukqpo/Screenshot%202015-04-30%2021.16.13.png?dl=0

Received a runtime error: https://www.dropbox.com/s/4xhwzoomyu59f6n/Screenshot%202015-04-30%2021.17.05.png?dl=0

Is this an error in my algorithm? I have pieced it together / modified the Bitcoin and Moving Average tutorials to get the overall structure. Not sure where to dig deeper to find the source; would appreciate some input.
Update Backtest








tried to attach my project, not sure why it didn't work. Trying again here
0


After modifying the strategy to run on SPY instead of BTC, no errors; must have something to do with BTC data and how it's handled. It would be instructive for me to understand what is causing this; does anyone have any input?
0


Hey Reuben!

It turns out this was a bug I recently introduced and has just been fixed in a136d1.

My apologies, you should be good to go now!
0

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.


thank you!
0

Update Backtest





0

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.


Loading...

This discussion is closed