Back

Error Meaning

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

Update Backtest








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?

0

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.

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.


Thanks for the response, Jared. Now, every algorithm I try to run just hangs on analyzing strategy, including this one copied exactly:

https://github.com/QuantConnect/Lean/blob/master/Algorithm.Python/WarmupHistoryAlgorithm.py

And this one:

class SomeAlgorithm(QCAlgorithm):

def Initialize(self):
pass

def OnData(self, slice):
pass

 

0

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. 

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.


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