Merge PythonSlice into Slice (#8707)

- To simplify stub generation, merge PythonSlice into Slice, following
  existing pattern too, see QCAlgorithm.Python.cs
- Minor sintax fixes in example python algorithms
This commit is contained in:
Martin-Molinero
2025-04-21 13:37:33 -03:00
committed by GitHub
parent b81bcf086e
commit 4584feb7da
20 changed files with 106 additions and 209 deletions
@@ -31,7 +31,7 @@ class IndicatorHistoryAlgorithm(QCAlgorithm):
# Let's keep BB values for a 20 day period
self.bollinger_bands.window.size = 20
# Also keep the same period of data for the middle band
self.bollinger_bands.middle_band.window.size = 20;
self.bollinger_bands.middle_band.window.size = 20
def on_data(self, slice: Slice):
# Let's wait for our indicator to fully initialize and have a full window of history data