18 using Newtonsoft.Json;
22 using System.Collections.Generic;
44 public string SessionId {
get;
set; } =
string.Empty;
59 public string CompileId {
get;
set; } =
string.Empty;
89 public string Name {
get;
set; } =
string.Empty;
123 var packet = JsonConvert.DeserializeObject<
BacktestResultPacket>(json,
new JsonSerializerSettings
125 TypeNameHandling = TypeNameHandling.Auto
145 catch (Exception err)
147 Log.
Trace($
"BacktestResultPacket(): Error converting json: {err}");
180 catch (Exception err) {
193 new Dictionary<string, Chart>(),
new Dictionary<int, Order>(),
new Dictionary<DateTime, decimal>(),
194 new Dictionary<string, string>(),
new SortedDictionary<string, string>(),
new Dictionary<string, AlgorithmPerformance>(),
196 )), DateTime.UtcNow, DateTime.UtcNow);
209 public Dictionary<string, AlgorithmPerformance>
RollingWindow {
get;
set; } =
new Dictionary<string, AlgorithmPerformance>();