Hi!
I generated random data and trying to backtest algorithm with indicator, I'm getting an error:
20220710 19:26:34.572 ERROR:: TradeBar.Reader(): Error parsing stream, Symbol: CFC, SecurityType: Equity, Resolution: Daily, Date: 2021-12-20, Message: System.FormatException: String '1000500' was not recognized as a valid
DateTime.
at QuantConnect.Data.Market.TradeBar.ParseEquity(TradeBar tradeBar, SubscriptionDataConfig config, StreamReader stream, DateTime date) in /LeanCloud/CI.Builder/bin/Debug/src/QuantConnect/Lean/Common/Data/Market/TradeBar.cs:line 378
at QuantConnect.Data.Market.TradeBar.ParseEquity(SubscriptionDataConfig config, StreamReader streamReader, DateTime date) in /LeanCloud/CI.Builder/bin/Debug/src/QuantConnect/Lean/Common/Data/Market/TradeBar.cs:line 369
at QuantConnect.Data.Market.TradeBar.Reader(SubscriptionDataConfig config, StreamReader stream, DateTime date, Boolean isLiveMode) in /LeanCloud/CI.Builder/bin/Debug/src/QuantConnect/Lean/Common/Data/Market/TradeBar.cs:line 273
And where can I read about data generated? What are the last 5 columns? First are Date, Open, High, Low, Close, Open int, is it correct?
The data is:
Maryana
Can anybody help please?
Louis Szeto
Hi Maryana
It seems like your data is not comma-separated? You may explore LEAN's data folder to check what each data type's raw data looks like. Ideally, to test a local backtest, you may refer to the random data generation doc and `lean data generate` API reference.
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.
Maryana
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!