Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with ADXIndicator interacting with numpy #337

Open
bszek213 opened this issue Feb 3, 2024 · 1 comment
Open

Issue with ADXIndicator interacting with numpy #337

bszek213 opened this issue Feb 3, 2024 · 1 comment

Comments

@bszek213
Copy link

bszek213 commented Feb 3, 2024

Traceback (most recent call last):
File "/home/brianszekely/Desktop/ProjectsResearch/technical-analysis-crypto/find_best_strategies.py", line 756, in
main()
File "/home/brianszekely/Desktop/ProjectsResearch/technical-analysis-crypto/find_best_strategies.py", line 683, in main
df_features = ta.add_all_ta_features(
File "/home/brianszekely/anaconda3/envs/ta/lib/python3.9/site-packages/ta/wrapper.py", line 589, in add_all_ta_features
df = add_trend_ta(
File "/home/brianszekely/anaconda3/envs/ta/lib/python3.9/site-packages/ta/wrapper.py", line 340, in add_trend_ta
indicator_adx = ADXIndicator(
File "/home/brianszekely/anaconda3/envs/ta/lib/python3.9/site-packages/ta/trend.py", line 716, in init
self._run()
File "/home/brianszekely/anaconda3/envs/ta/lib/python3.9/site-packages/ta/trend.py", line 724, in _run
pdm = _get_min_max(self._high, close_shift, "max")
File "/home/brianszekely/anaconda3/envs/ta/lib/python3.9/site-packages/ta/utils.py", line 76, in _get_min_max
output = np.amax([series1, series2], axis=0)
File "/home/brianszekely/anaconda3/envs/ta/lib/python3.9/site-packages/numpy/core/fromnumeric.py", line 2827, in amax
return _wrapreduction(a, np.maximum, 'max', axis, None, out,
File "/home/brianszekely/anaconda3/envs/ta/lib/python3.9/site-packages/numpy/core/fromnumeric.py", line 88, in _wrapreduction
return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
TypeError: '>=' not supported between instances of 'float' and 'NoneType'

Is this a known issue in this package or am I missing something?

@jleei
Copy link

jleei commented Feb 25, 2024

same error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants