cedricporter / funcat

Funcat 将同花顺、通达信、文华财经麦语言等的公式写法移植到了 Python 中。
http://funcat.org
Apache License 2.0
941 stars 421 forks source link

EMA() takes at most 2 positional arguments (3 given) #29

Open lyonLeeLPL opened 6 years ago

lyonLeeLPL commented 6 years ago

提 ISSUE 须知

EMA() takes at most 2 positional arguments (3 given)

如果是 bug 反馈,烦请在 issue 中描述以下问题:

1. funcat 的版本

funcat==0.3.2

2. Python 的版本

3.6

3. 是 Windows / Linux / MacOS or others?

windows

4. 您出现问题对应的源码 / 或者能复现问题的简易代码

close_data = NumericSeries([1,2,3]) EMA (close_data,3)

5. 您出现的错误堆栈日志信息

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "E:\ProgramData\Anaconda3\lib\site-packages\funcat-0.3.2-py3.6.egg\funcat\func.py", line 31, in init series = self.func(series, arg) File "C:\Users\Administrator\AppData\Roaming\Python\Python36\site-packages\talib__init__.py", line 24, in wrapper return func(*args, **kwargs) File "_func.pxi", line 7053, in talib._ta_lib.EMA TypeError: EMA() takes at most 2 positional arguments (3 given)

ksgt00857912 commented 4 years ago

我也出现这个问题了 怎么解决呀?

ljk99 commented 4 years ago

talib的版本要用回4.1.7,更新以后的4.1.8出错