-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
invalidThis is not a (valid) bug reportThis is not a (valid) bug report
Description
Expected behavior
This code should work fine.
Code sample
self.vol20 = self.I(talib.SMA, self.data.Volume, 20)
self.vol50 = self.I(talib.SMA, self.data.Volume, 50)
raise RuntimeError(f'Indicator "{name}" errored with exception: {e}')
131 if isinstance(value, pd.DataFrame):
132 value = value.values.T
RuntimeError: Indicator "SMA(V,20)" errored with exception: input array type is not doubleActual behavior
But I get the error above when I write it on GOOG
Additional info, steps to reproduce, full crash traceback, screenshots
No response
Software versions
backtesting.__version__: 0.3.3pandas.__version__: 2.3.3numpy.__version__: 1.24.3talib.__version__: 0.6.7- OS: windows
Metadata
Metadata
Assignees
Labels
invalidThis is not a (valid) bug reportThis is not a (valid) bug report