matplotlib / matplotlib/mplfinance

how to change bar colours by comparing consecutive closes, not by its open and close

Open
#253 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
Python
Stars
4.4k
Forks
678
PR merge metrics
No merged PRs in 30d

Description

Hi,

how I can change the bar colours by comparing today's close with previous day close
if today's close >= yesterday close, BLUE
if today's close < yesterday close, RED
the same also for the volume bars, so that they all matched with blue/red colours in bar

the current settings are all comparing the today's close with today's open.

Please advise. thanks

Contributor guide

Open the contributing guide

Research direction

The issue names no file, test, or entry point. Start by locating mplfinance's bar-color configuration and compare its current open-versus-close behavior with the requested consecutive-close rule; done means price and volume bars consistently use blue when today's close is at least yesterday's and red otherwise.

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
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.