matplotlib / matplotlib/mplfinance

Document **vcdopcod** (Volume Color Depends on Price Change on Day) feature of mplfinance styles.

Open
#246 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

**Describe the bug**

Using style as charles or yahoo with candle and volume chart, some of their color don't match.
This is not happening to starsandstripes styled chart.

**To Reproduce**

Please take a look at charles or yahoo styled chart in the example page.
https://github.com/matplotlib/mplfinance/blob/master/examples/styles.ipynb

The second candle from the left is red in the chart but its volume bar is green.
The fifth candle from the left is red but its volume bar is green.

This is happening to my project as well.

Cheers

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

Start with examples/styles.ipynb and inspect the charles, yahoo, and starsandstripes style examples. Confirm how volume colors relate to candle colors and document the vcdopcod feature and the observed behavior so the style differences are clear.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization, documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.