Why am I getting the "Backtest Error: Error initializing algorithm: This may be because history is using fake data while pre-analyzing an algorithm for a backtest" error? I am not using a warmup nor am I using FXCM data before 4/28/2007
QUANTCONNECT COMMUNITY
Why am I getting the "Backtest Error: Error initializing algorithm: This may be because history is using fake data while pre-analyzing an algorithm for a backtest" error? I am not using a warmup nor am I using FXCM data before 4/28/2007
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.
Ryan Connor
I am getting the same error, and I am not using a warmup or FXCM data before 4/28/2007. Do you ever resolve this?
Jared Broad
This error is likely in the Initialize method somewhere - without sharing a code snippet its hard to say why, If you'd like more assistance I'd recommend sharing a strategy.
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.
Ryan Connor
Thanks for the response, Jared. Now, every algorithm I try to run just hangs on analyzing strategy, including this one copied exactly:
And this one:
class SomeAlgorithm(QCAlgorithm): def Initialize(self): pass def OnData(self, slice): pass
Alexandre Catarino
We have tested this algorithm and it has ended successfully:
25 | 08:14:59: Launching analysis for ~ with LEAN Engine v2.4.0.0.1492 26 | 08:21:47: Algorithm Id:(~) completed in 407.79 seconds at 5k data points per second. Processing total of 1,902,880 data points.
When we "pass" in Initialize method, the algorithm will make a simulation with default values. StartDate is Jan 1st 1998, EndDate is yesterday and benchmark is SPY. It is 1,902,880 data points that takes about 6:48 to be processed.
Leonard Chen
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!