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:
@@ -44,7 +44,7 @@ class CustomVolatilityModel():
|
||||
self.last_price = 0
|
||||
self.needs_update = False
|
||||
self.period_span = timedelta(1)
|
||||
self.window = RollingWindow[float](periods)
|
||||
self.window = RollingWindow(periods)
|
||||
|
||||
# Volatility is a mandatory attribute
|
||||
self.volatility = 0
|
||||
|
||||
Reference in New Issue
Block a user