Minor syntax fixes for python algorithms (#8705)

This commit is contained in:
Martin-Molinero
2025-04-21 10:06:47 -03:00
committed by GitHub
parent e34a7e0bfa
commit b81bcf086e
11 changed files with 13 additions and 16 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ class CustomIndicatorAlgorithm(QCAlgorithm):
self._custom = CustomSimpleMovingAverage('custom', 60)
# The python custom class must inherit from PythonIndicator to enable Updated event handler
self._custom.updated += self._custom_updated
self._custom.updated += self.custom_updated
self._custom_window = RollingWindow[IndicatorDataPoint](5)
self.register_indicator("SPY", self._custom, Resolution.MINUTE)