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:
JosueNina
2025-06-18 16:29:00 -05:00
committed by GitHub
parent 4dcd41b690
commit 5729be4661
14 changed files with 112 additions and 15 deletions
@@ -22,9 +22,9 @@ class ObjectStoreExampleAlgorithm(QCAlgorithm):
trained and then saving the model weights in the object store.
'''
spy_close_object_store_key = "spy_close"
spy_close_history = RollingWindow[IndicatorDataPoint](252)
spy_close_ema10_history = RollingWindow[IndicatorDataPoint](252)
spy_close_ema50_history = RollingWindow[IndicatorDataPoint](252)
spy_close_history = RollingWindow(252)
spy_close_ema10_history = RollingWindow(252)
spy_close_ema50_history = RollingWindow(252)
def initialize(self):
self.set_start_date(2013, 10, 7)