Momentum-Trading-Example
Momentum-Trading-Example copied to clipboard
Update algo.py
Changed macd import to Class Based due to changes in ta module. https://technical-analysis-library-in-python.readthedocs.io/en/latest/ta.html#ta.trend.MACD
@sgtg-us do you have a working verison of this algo?
Traceback (most recent call last):
File "/home/<username>/alg0.py", line 369, in <module>
if __name__ == __main__:
NameError: name '__main__' is not defined
Do not know, where is the problem now.