首页 > 解决方案 > 为袖扣添加自定义指示器

问题描述

我正在使用以下代码向袖扣/绘图添加一些预先构建的指标:

qf = cf.QuantFig(df, title="Apple's stock price in 2021", name='AAPL')
qf.add_sma([10, 50], width=2, color=['blue', 'red'])
qf.add_rsi(periods=14, color='green')
qf.add_bollinger_bands(periods=20, boll_std=2 ,colors=['orange','grey'], fill=True)
qf.add_macd()
qf.iplot(layout=layout_cf)

有没有办法添加ListPandas Series作为自定义指标?如果此选项不可用,是否有任何方法可以在源代码中添加允许这样做的函数?

标签: pythonpandasplotlyquantitative-financecandlestick-chart

解决方案


推荐阅读