indicators.py 文件源码

python
阅读 17 收藏 0 点赞 0 评论 0

项目:gdax-trader 作者: mcardillo55 项目源码 文件源码
def calculate_vol_macd(self, period_name, volumes):
        macd, macd_sig, macd_hist = talib.MACD(volumes, fastperiod=50,
                                               slowperiod=200, signalperiod=14)
        self.current_indicators[period_name]['vol_macd'] = macd[-1]
        self.current_indicators[period_name]['vol_macd_sig'] = macd_sig[-1]
        self.current_indicators[period_name]['vol_macd_hist'] = macd_hist[-1]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号