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

DMI指标使用有疑问 #118

Open
Near-Tam opened this issue Apr 10, 2022 · 0 comments
Open

DMI指标使用有疑问 #118

Near-Tam opened this issue Apr 10, 2022 · 0 comments

Comments

@Near-Tam
Copy link

Near-Tam commented Apr 10, 2022

df = pro.daily(ts_code="000027.SZ", start_date='20080101', end_date='20220410') # 用tushare的接口获取股票数据
#对数据做reverse
df = df.reindex(index=df.index[::-1])
df = df.reset_index(drop=True)

stockStat = stockstats.StockDataFrame.retype(df)
print(stockStat[['close', 'pdi', 'mdi', 'adx','adxr', 'macd']])

最后输出结果与股票app上的数据对不上
请问是我使用的方法有问题吗?

@Near-Tam Near-Tam changed the title DMI指标使用优疑问 DMI指标使用有疑问 Apr 10, 2022
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

1 participant