matplotlib / matplotlib/mplfinance

`type='HLC'` for classic western style HLC Bar chart

Open
#334 9 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Hi everyone,
I am using the original flavor of mplfinance and I am really struggling creating a simple HLC bar chart as below.
Does someone have an idea how this could be achieved?

![charts-4sunw-hlc](https://user-images.githubusercontent.com/21028194/107956334-5024bc00-6f9f-11eb-961b-8802f5ce14f9.png)

When I fill the Open column with Close data, I will get the chart but lose the coloring. I hope I don't have to split up the date based on Open< Close and Open>Close and then draw 2 candlesticks, do I?
Thank you all in advance for the help.

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 file or test is named; start by reviewing mplfinance's existing OHLC and candlestick chart API and how chart styles are selected. Done means a classic western HLC bar chart can be produced from the supplied data without splitting rows by Open versus Close, while preserving the requested coloring.

Written by the indexing model from the issue text.

Assessment

Tech stack
matplotlib, python
Domain
data-visualization
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.