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

from ta import macd ImportError: cannot import name 'macd' #13

Open
PravinrajV opened this issue Mar 11, 2020 · 3 comments
Open

from ta import macd ImportError: cannot import name 'macd' #13

PravinrajV opened this issue Mar 11, 2020 · 3 comments

Comments

@PravinrajV
Copy link

I followed the instructions and I get the below error when running the algo.py:

pravinraj_vincent@alpaca-uirobots:~$ python3 algo.py
Traceback (most recent call last):
File "algo.py", line 4, in
from ta import macd
ImportError: cannot import name 'macd'

@PravinrajV PravinrajV changed the title pravinraj_vincent@alpaca-uirobots:~$ python3 algo.py Traceback (most recent call last): File "algo.py", line 4, in <module> from ta import macd ImportError: cannot import name 'macd' from ta import macd ImportError: cannot import name 'macd' Mar 11, 2020
@gucciwang
Copy link

You can fix that by downgrading your ta package to the time when they published this demo. The following should work for you:

pip uninstall ta
pip install ta==0.4.5

@PravinrajV
Copy link
Author

PravinrajV commented Mar 12, 2020 via email

@ljtruong
Copy link

ljtruong commented Apr 3, 2020

the macd trend indicator has been moved to ta.trend class

from ta.trend import macd

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

3 participants