推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
admirez
V2EX  ›  Python

如何用 Python 判断一段股票 K 线是双底, 也就是 W 形态

  •  
  •   admirez · Oct 17, 2020 · 3453 views
    This topic created in 2043 days ago, the information mentioned may be changed or developed.
    3 replies    2020-10-23 02:36:52 +08:00
    jeeyong
        1
    jeeyong  
       Oct 21, 2020
    我随便说的啊..
    两种方式, 一种是比较固化的, 程序化的. 一种是基于图像识别的..可能在对于你的需求来说更宽泛一些.
    方法 1: 把日线的价格做成向量, 找到两个最低值, 设置好一个阈值, 比如[15,20]天把. 两个最低点之间在这个区间, 粗略判断为 W 形态.
    方法 2: 日线价格做成向量, 通过 pillow 画出来, 然后通过图像识别的方式识别是否为 W 形态....

    我喝酒了...
    admirez
        2
    admirez  
    OP
       Oct 22, 2020
    图像识别要很多训练吧?
    jeeyong
        3
    jeeyong  
       Oct 23, 2020
    @admirez 下次直接回复我的对话哈...不然我看不到.收不到消息.

    这种简单的, 或者训练量很少, 或者不用训练.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2888 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 15:02 · PVG 23:02 · LAX 08:02 · JFK 11:02
    ♥ Do have faith in what you're doing.