matplotlib / matplotlib/mplfinance

Dochian Channels With mpl_Finance

Open
#596 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
4.4k
Forks
678
PR merge metrics
No merged PRs in 30d

Description

Those Who Looks For Dochian Channel with mpl_finance

NIFTY_2023-03-09_14-09-42

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,)
)

dochian

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No repository file, test, or entry point is named. Reproduce the provided Python example with the shown data, then inspect the mplfinance plotting path and clarify the expected Donchian-channel rendering before defining what a fix would need to demonstrate.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.