python - 为袖扣添加自定义指示器
问题描述
我正在使用以下代码向袖扣/绘图添加一些预先构建的指标:
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)
有没有办法添加List
或Pandas Series
作为自定义指标?如果此选项不可用,是否有任何方法可以在源代码中添加允许这样做的函数?
解决方案
推荐阅读
- google-bigquery - 如何强制 BigQuery 自动检测包含所有字符串的架构?
- c# - 我可以在 APS.NET Core Web 应用程序项目中为 AJAX API 调用提供 MVC 应用程序控制器类吗?
- resources - constantBuffer 得到错误的值(壮举 memcopy)
- c# - (C# UWP) Microsoft.Data.Sqlite.Core,数据库 CRUD 操作
- javascript - 我正在尝试解析从 firebase 查询中获取的数据,但数据没有得到解析
- flutter - Flutter 中类似于 Image Map 的功能?
- request - 如果页面没有被请求,页面将被刷新或路由将被重定向。如何解决?
- python - 有没有办法让我的 Tkinter GUI 与我的代码同时运行?
- javascript - 如何在点击时正确更改 react-bootstrap DropdownButton 的标题?
- bash - 如何在不退出 shell 的情况下执行 bash 脚本