matplotlib / matplotlib/mplfinance
Dochian Channels With mpl_Finance
未关闭
还没有人认领这个 Issue。
enhancement
- 主要语言
- Python
- 星标
- 4.4k
- 派生
- 678
- PR 合并指标
- 30 天内没有已合并 PR
描述
Those Who Looks For Dochian Channel with mpl_finance

import OfflineData # Function Fetch Data From Mysql Stored Candle
import pandas_ta as ta
import mplfinance as mpl
df = OfflineData.getStockData('tcs')
df.tail(2)
| Id | Open | High | Low | Close | Volume |
|---|
348.0 | 3361.9 | 3404.95 | 3359.00 | 3378.0 | 1333840.0
349.0 | 3364.0 | 3396.00 | 3330.85 | 3390.4 | 1844590.0
donchiandf = ta.donchian(df["High"], df["Low"], lower_length=10, upper_length=15)
donchiandf.tail(2)
DCU = donchiandf[['DCU_10_15']]
DCM = donchiandf[['DCM_10_15']]
DCL = donchiandf[['DCL_10_15']]
apds = [
mpl.make_addplot(DCU,color='#2962FF',panel=0,),
mpl.make_addplot(DCM,color='#FF6D00',panel=0,),
mpl.make_addplot(DCL,color='#2962FF',panel=0,),
]
mpl.plot(
df,
volume=True,
type="candle",
style="yahoo",
addplot=apds,
figscale=1.2,
figsize=(46,26,)
)

贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
未指定任何 repository 文件、测试或入口点。使用所示数据复现提供的 Python 示例,然后检查 mplfinance 的绘图路径,并明确预期的 Donchian 通道渲染方式,再确定修复需要证明什么。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- data-visualization
- Issue 类型
- 缺陷
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 20/100