V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 2016-10-20 17:28:11 +08:00 · 2883 次点击
    这是一个创建于 2754 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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 条回复    2016-10-21 21:23:07 +08:00
    dsg001
        1
    dsg001  
       2016-10-21 21:23:07 +08:00
    当年用飞狐写指标。。。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   754 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 21:49 · PVG 05:49 · LAX 14:49 · JFK 17:49
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.