I really need help backtesting this strategy to see how well it fared during the crash in 2008. Its very simple parameters but I have no idea how to code the backtesting strategy.
Can anyone help?
QUANTCONNECT COMMUNITY
I really need help backtesting this strategy to see how well it fared during the crash in 2008. Its very simple parameters but I have no idea how to code the backtesting strategy.
Can anyone help?
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.
Eric Summers
Stephen Oehler
Yoni Amz
JP B
Stephen Oehler
Yoni Amz
Stephen Oehler
Stephen Oehler
Stephen Oehler
Yoni Amz
Stephen Oehler
Mauro Andrade
Hi Stephen, Thanks for the excellent input and work. I am getting an error: "Insufficient Buying Power to Complete order." Why is that hapenning?
Stephen Oehler
Hey Mauro, Would you mind sharing the project code? If you're using the code I gave to Yoni, do realize that it is simply a framework. I've commented out several areas where fundamentals data is supposed to be plugged in, and replaced them with dummy variables (zeros). I'd be surprised if it functioned at all in the state that I presented it :-P
Mauro Andrade
Stephen Oehler
Mauro, Thanks for the compliment! However (and this is important) you should know that, as-is, the code has no data to operate from, and so it will likely attempt to invest in all four of the stocks above right when you start it. Since it can't currently consume fundamental data (it doesn't exist yet at QuantConnect, but they're working on it), my code will NOT be smart enough to divest from those stocks if they perform badly. To put it another way, the code is crippled: so it will most certainly not perform the same when deployed live. We need to wait for fundamental data to arrive. Please understand that, since those four stocks performed very well from 2008 to 2016, it just so happens that you're getting good results.
Yoni Amz
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!