Make RollingWindow compatible with any data type (#8836)
* Make RollingWindow compatible with any data type * Add generic RW<T> method * Add RollingWindow wrapper class for PyObject * Solve review comments * Resolve review comments
This commit is contained in:
@@ -33,7 +33,7 @@ class CustomIndicatorAlgorithm(QCAlgorithm):
|
||||
# The python custom class must inherit from PythonIndicator to enable Updated event handler
|
||||
self._custom.updated += self.custom_updated
|
||||
|
||||
self._custom_window = RollingWindow[IndicatorDataPoint](5)
|
||||
self._custom_window = RollingWindow(5)
|
||||
self.register_indicator("SPY", self._custom, Resolution.MINUTE)
|
||||
self.plot_indicator('CSMA', self._custom)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user