bta-lib
bta-lib copied to clipboard
MAMA indicator ValueError
Traceback (most recent call last): File "/Users/cosmos/GitHub/haasomeapitools/.env/lib/python3.7/site-packages/pandas/core/series.py", line 1014, in setitem self._set_with_engine(key, value) File "/Users/cosmos/GitHub/haasomeapitools/.env/lib/python3.7/site-packages/pandas/core/series.py", line 1054, in _set_with_engine self.index._engine.set_value(values, key, value) File "pandas/_libs/index.pyx", line 96, in pandas._libs.index.IndexEngine.set_value File "pandas/_libs/index.pyx", line 106, in pandas._libs.index.IndexEngine.set_value File "pandas/_libs/index.pyx", line 116, in pandas._libs.index.IndexEngine.get_loc TypeError: 'slice(11, None, None)' is an invalid key
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/cosmos/GitHub/haasomeapitools/btalibtest.py", line 23, in
What package version are you using?
I'm currently using mama in production without issue. The only question I have is whether or not the calculations are done correctly, and unfortunately, I am having a hard time figuring that out.
Also, you're going to get a false positive almost every tick with those parameters. You may already know this, but the default for fast is 0.5. The default for slow is 0.05, and those parameters work pretty darn well.