pandas_indicators.py 文件源码

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

项目:PythonTrading 作者: F2011B 项目源码 文件源码
def Chaikin(df):
    ad = (2 * df['Close'] - df['High'] - df['Low']) / (df['High'] - df['Low']) * df['Volume']
    Chaikin = pd.Series(pd.ewma(ad, span = 3, min_periods = 2) - pd.ewma(ad, span = 10, min_periods = 9), name = 'Chaikin')
    df = df.join(Chaikin)
    return df

#Money Flow Index and Ratio
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号