Skip to content

Commit

Permalink
Update QCAlgorithm.Plotting.cs (#4827)
Browse files Browse the repository at this point in the history
Increased maximum number of series that can be plotted in backtest from 10 to 30

Co-authored-by: Emilio Freire <[email protected]>
  • Loading branch information
EmilioFreire and EmilioFreire authored Oct 6, 2020
1 parent 28160e1 commit bbc0ef2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Algorithm/QCAlgorithm.Plotting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ public void Plot(string chart, string series, decimal value)
? i + c.Series.Values.Count(s => reservedSeriesNames.Count > 0 && !reservedSeriesNames.Contains(s.Name))
: i + c.Series.Count);

if (seriesCount > 10)
if (seriesCount > 30)
{
Error("Exceeded maximum series count: Each backtest can have up to 10 series in total.");
Error("Exceeded maximum series count: Each backtest can have up to 30 series in total.");
return;
}

Expand Down Expand Up @@ -337,4 +337,4 @@ public List<Chart> GetChartUpdates(bool clearChartData = false)
return updates;
}
}
}
}

0 comments on commit bbc0ef2

Please sign in to comment.