用talib列举某股票历史数据中2只乌鸦形态出现时间

使用pystock,不需要编写python代码。

该功能用到的模块中,talib的安装较为特殊。我参考了这篇:学习记录654@搞定python安装TA-Lib第三方库_教练 我想学编程的博客-CSDN博客

用这种方法,就不需要下载安装 Microsoft Visual C++ 14.0 or greater 了。

但是需要根据自己python版本和操作系统位数下载对应的whl文件到scripts文件中中。

  • Shapely‑1.8.2‑pp38‑pypy38_pp73‑win_amd64.whl
  • Shapely‑1.8.2‑cp311‑cp311‑win_amd64.whl
  • Shapely‑1.8.2‑cp311‑cp311‑win32.whl
  • Shapely‑1.8.2‑cp310‑cp310‑win_amd64.whl
  • Shapely‑1.8.2‑cp310‑cp310‑win32.whl
  • Shapely‑1.8.2‑cp39‑cp39‑win_amd64.whl
  • Shapely‑1.8.2‑cp39‑cp39‑win32.whl
  • Shapely‑1.8.2‑cp38‑cp38‑win_amd64.whl
  • Shapely‑1.8.2‑cp38‑cp38‑win32.whl
  • Shapely‑1.8.1.post1‑cp37‑cp37m‑win_amd64.whl
  • Shapely‑1.8.1.post1‑cp37‑cp37m‑win32.whl
  • Shapely‑1.7.1‑cp36‑cp36m‑win_amd64.whl
  • Shapely‑1.7.1‑cp36‑cp36m‑win32.whl
  • Shapely‑1.6.4.post2‑cp35‑cp35m‑win_amd64.whl

安装命令:python -m pip install dlls/Scripts/TA_Lib-0.4.24-cp310-cp310-win_amd64.whl

pystock中我已经安装了。

Package         Version
--------------- -------
et-xmlfile      1.1.0
feather-format  0.4.1
numpy           1.23.3
openpyxl        3.0.10
pandas          1.5.0
pip             22.2.2
pyarrow         9.0.0
python-dateutil 2.8.2
pytz            2022.4
setuptools      65.4.1
six             1.16.0
TA-Lib          0.4.24
wheel           0.37.1

安装完成后,先把通达信文件格式转换为本地feather格式:

通达信日线数据用转换为excel、csv和feather格式python功能虽然强大,但由于术业有专攻,不少股民朋友不擅长写代码,对python望而却步。今天开始写一个小软件,主要作用是可以直接运行python代码,进行股票数据处理和分析。解压缩后,内置Python 版本3.10.7,已经安装了所有需要的模块,导致整个程序体积较大:约200M。上一篇文章介绍了股票数据直接导入到数据库中,结论是对个人来说,设备要求太高,占用空加大,不可行。转换沪市所有股票耗时84秒。https://blog.csdn.net/bq_cui/article/details/127263572?spm=1001.2014.3001.5501

然后切换到“形态搜索”页签,刷新列表,选中一个股票代码,点“搜索2只乌鸦”按钮,完成后在右侧显示结果。

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值