Update CustomChartingAlgorithm.py
One more tweak to overlay the lines rather than separating the series
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user