Update CustomChartingAlgorithm.py

One more tweak to overlay the lines rather than separating the series
This commit is contained in:
Jack Simonson
2019-01-30 14:31:24 -08:00
parent 2e7c3fb6e4
commit 13ed3bcaf1
+2 -2
View File
@@ -50,10 +50,10 @@ class CustomChartingAlgorithm(QCAlgorithm):
stockPlot.AddSeries(Series("Price", SeriesType.Line, 0))
self.AddChart(stockPlot)
# On the Average Cross Chart we want 2 series, not-overlaid
# On the Average Cross Chart we want 2 series, slow MA and fast MA
avgCross = Chart("Average Cross")
avgCross.AddSeries(Series("FastMA", SeriesType.Line, 0))
avgCross.AddSeries(Series("SlowMA", SeriesType.Line, 1))
avgCross.AddSeries(Series("SlowMA", SeriesType.Line, 0))
self.AddChart(avgCross)
self.fastMA = 0