I've been trying to get backtesting locally working for the past few days, and I keep running into this error - I'm stumped. The backtest-desktop application will open up and then crash out, with this in the console.Any idea what this means and how I can resolve it?
Alexandre Catarino
I cannot read the small print.
Did you follow the readme? What is the OS? Are you running C# version of BasicTemplateAlgorithm?
Pawel Kowalke
20180908 00:38:28.919 Trace:: Config.Get(): Configuration key not found. Key: composer-dll-directory - Using default value: C:\Users\user\source\repos\QuantConnect\Lean - Local\Launcher\bin\Debug\
20180908 00:38:29.761 Trace:: Python for .NET Assembly: Python.Runtime, Version=2.4.0.0, Culture=neutral, PublicKeyToken=null
20180908 00:38:30.193 Trace:: Python for .NET Assembly: nPython, Version=2.4.0.0, Culture=neutral, PublicKeyToken=null
20180908 00:38:30.308 Trace:: Config.GetValue(): debug-mode - Using default value: False
20180908 00:38:33 Trace:: Config.Get(): Configuration key not found. Key: data-directory - Using default value: ../../../Data/
20180908 00:38:33 Trace:: Config.Get(): Configuration key not found. Key: version-id - Using default value:
20180908 00:38:33 Trace:: Config.Get(): Configuration key not found. Key: cache-location - Using default value: ../../../Data/
20180908 00:38:33 Trace:: Engine.Main(): LEAN ALGORITHMIC TRADING ENGINE v2.4.0.0 Mode: DEBUG (64bit)
20180908 00:38:33 Trace:: Engine.Main(): Started 00:38
20180908 00:38:36 Trace:: Engine.Main(): Memory 60Mb-App 4Mb-Used 2064Mb-Total
20180908 00:38:36 Trace:: Config.GetValue(): job-project-id - Using default value: 0
20180908 00:38:36 Trace:: Config.Get(): Configuration key not found. Key: algorithm-path-python - Using default value: ../../../Algorithm.Python/
20180908 00:38:36 Trace:: Config.Get(): Configuration key not found. Key: lean-manager-type - Using default value: LocalLeanManager
20180908 00:38:36 Trace:: Config.Get(): Configuration key not found. Key: cloud-api-url - Using default value: https://www.quantconnect.com/api/v2/
20180908 00:38:36 Trace:: JobQueue.NextJob(): Selected QuantConnect.Algorithm.CSharp.dll
20180908 00:38:36 Trace:: Config.Get(): Configuration key not found. Key: history-provider - Using default value: SubscriptionDataReaderHistoryProvider
20180908 00:38:37 Trace:: Config.GetValue(): ignore-version-checks - Using default value: False
20180908 00:38:37 Trace:: Config.GetValue(): algorithm-manager-time-loop-maximum - Using default value: 20
20180908 00:38:37.477 Trace:: Config.Get(): Configuration key not found. Key: data-directory - Using default value: ../../../Data/
20180908 00:38:37.485 Trace:: Config.Get(): Configuration key not found. Key: version-id - Using default value:
20180908 00:38:37.485 Trace:: Config.Get(): Configuration key not found. Key: cache-location - Using default value: ../../../Data/
20180908 00:38:38 Trace:: Loader.TryCreateILAlgorithm(): Loading only the algorithm assembly
20180908 00:38:38 Trace:: Loader.TryCreateILAlgorithm(): Loaded BasicTemplateForexAlgorithm
20180908 00:38:39 Trace:: Config.Get(): Configuration key not found. Key: security-data-feeds - Using default value:
20180908 00:38:41 Trace:: BacktestingResultHandler(): Sample Period Set: 04,00
20180908 00:38:41 Trace:: Time.TradeableDates(): Security Count: 2
20180908 00:38:41 Trace:: Config.GetValue(): forward-console-messages - Using default value: True
20180908 00:38:41 Trace:: JOB HANDLERS:
20180908 00:38:41 Trace:: DataFeed: QuantConnect.Lean.Engine.DataFeeds.FileSystemDataFeed
20180908 00:38:41 Trace:: Setup: QuantConnect.Lean.Engine.Setup.ConsoleSetupHandler
20180908 00:38:41 Trace:: RealTime: QuantConnect.Lean.Engine.RealTime.BacktestingRealTimeHandler
20180908 00:38:41 Trace:: Results: QuantConnect.Lean.Engine.Results.BacktestingResultHandler
20180908 00:38:41 Trace:: Transactions: QuantConnect.Lean.Engine.TransactionHandlers.BacktestingTransactionHandler
20180908 00:38:41 Trace:: Alpha: QuantConnect.Lean.Engine.Alphas.DefaultAlphaHandler
20180908 00:38:41 Trace:: History Provider: QuantConnect.Lean.Engine.HistoricalData.SubscriptionDataReaderHistoryProvider
20180908 00:38:41 Trace:: Launching analysis for BasicTemplateForexAlgorithm with LEAN Engine v2.4.0.0
20180908 00:38:41 Trace:: AlgorithmManager.Run(): Begin DataStream - Start: 07.05.2014 00:00:00 Stop: 15.05.2014 23:59:59
20180908 00:38:41 Trace:: FileSystemDataFeed.GetEnumerator(): Begin: 07.05.2014 04:00:00 UTC
20180908 00:38:41 Trace:: EURUSD: 06.05.2014 23:59:56 > 1,392525
20180908 00:38:41 Trace:: EURUSD: 06.05.2014 23:59:57 > 1,39250
20180908 00:38:41 Trace:: EURUSD: 06.05.2014 23:59:58 > 1,39250
20180908 00:38:41 Trace:: EURUSD: 06.05.2014 23:59:59 > 1,39250
20180908 00:38:41 Trace:: EURUSD: 07.05.2014 00:00:00 > 1,39250
20180908 00:38:41 Trace:: EURUSD: 1,39 z?, NZDUSD: 0,87 z?
20180908 00:38:42 Trace:: StreamingApi.Transmit(): Packet too long: QuantConnect.Packets.BacktestResultPacketWyjątek nieobsłużony: 20180908 00:38:42 Trace:: FileSystemDataFeed.Run(): Data Feed Completed at 16.05.2014 04:00:00 UTC
System.NotImplementedException: Metoda lub operacja nie jest zaimplementowana.
w QuantConnect.Util.SeriesJsonConverter.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer) w C:\Users\user\source\repos\QuantConnect\Lean - Local\Common\Util\SeriesJsonConverter.cs:wiersz 71
w Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable(JsonConverter converter, JsonReader reader, Type objectType, Object existingValue)
w Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictionary(IDictionary dictionary, JsonReader reader, JsonDictionaryContract contract, JsonProperty containerProperty, String id)
w Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
w Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
w Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)
w Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
w Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
w Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
w Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictionary(IDictionary dictionary, JsonReader reader, JsonDictionaryContract contract, JsonProperty containerProperty, String id)
w Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
w Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
w Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)
w Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
w Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
w Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
w Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)
w Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
w Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
w Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
w Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
w Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
w Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
w Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
w QuantConnect.Views.DesktopClient.Run(String port, IDesktopMessageHandler handler) w C:\Users\user\source\repos\QuantConnect\Lean - Local\UserInterface\DesktopClient.cs:wiersz 57
w QuantConnect.Views.Program.<>c__DisplayClass0_0.<Main>b__0() w C:\Users\user\source\repos\QuantConnect\Lean - Local\UserInterface\Program.cs:wiersz 25
w System.Threading.ThreadHelper.ThreadStart_Context(Object state)
w System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
w System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
w System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
w System.Threading.ThreadHelper.ThreadStart()
20180908 00:38:42 Trace:: AlgorithmManager.Run(): Firing On End Of Algorithm...
20180908 00:38:42 Trace:: Engine.Run(): Exiting Algorithm Manager
20180908 00:38:42 Trace:: StreamingApi.Transmit(): Packet too long: QuantConnect.Packets.BacktestResultPacket
20180908 00:38:43 Trace:: BacktestingResultHandler.SendAnalysisResult(): Processed final packet
20180908 00:38:43 Trace:: FileSystemDataFeed.Exit(): Exit triggered.
20180908 00:38:43 Trace:: BrokerageTransactionHandler.Run(): Ending Thread...
20180908 00:38:43 Trace:: FileSystemDataFeed.Run(): Ending Thread...
20180908 00:38:43 Trace:: BacktestingResultHandler.Run(): Ending Thread...
20180908 00:38:43 Trace:: Waiting for threads to exit...
20180908 00:38:53 Trace:: Engine.Run(): Disconnecting from brokerage...
20180908 00:38:53 Trace:: Engine.Run(): Disposing of setup handler...
20180908 00:38:53 Trace:: Engine.Main(): Analysis Completed and Results Posted.
20180908 00:38:53 Trace:: FileSystemDataFeed.Exit(): Exit triggered.
Engine.Main(): Analysis Complete. Press any key to continue.
20180908 00:40:52 Error:: StreamingApi.Client.ExecuteAsyncPost(): Error deserializing JSON content.
20180908 00:40:52 Error:: StreamingApi.Client.ExecuteAsyncPost(): Error deserializing JSON content.
Alexandre Catarino
Hi Pawel Kowalke, we have discontinued the current local IDE.
We are moving to a solution based on Electron.
Kevin Hughes
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!