推荐学习书目
› 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
datayes2015
V2EX  ›  Python

突然发现一个 simple MACD 算法

  •  
  •   datayes2015 · Oct 20, 2016 · 3855 views
    This topic created in 3633 days ago, the information mentioned may be changed or developed.
    MACD 公式算法:

    短期 EMA : 短期(例如 12 日)的收盘价指数移动平均值( Exponential Moving Average )
    长期 EMA : 长期(例如 26 日)的收盘价指数移动平均值( Exponential Moving Average )
    DIF 线: ( Difference )短期 EMA 和长期 EMA 的离差值
    DEA 线: ( Difference Exponential Average ) DIF 线的 M 日指数平滑移动平均线
    MACD 线:  DIF 线与 DEA 线的差
    策略实现: https://uqer.io/community/share/560a3007f9f06c597665ef61

    DIF 从下而上穿过 DEA ,买进;
    相反,如 DIF 从上往下穿过 DEA ,卖出。
    策略中使用 talib 计算 MACD
    https://uqer.io/community/share/560a3007f9f06c597665ef61





    1 replies  •  2016-10-21 21:23:07 +08:00
    dsg001
        1
    dsg001  
       Oct 21, 2016
    当年用飞狐写指标。。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2356 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 07:10 · PVG 15:10 · LAX 00:10 · JFK 03:10
    ♥ Do have faith in what you're doing.