Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Report: marketcolors display error when open=close #658

Closed
nkta3m opened this issue Jan 23, 2024 · 1 comment
Closed

Bug Report: marketcolors display error when open=close #658

nkta3m opened this issue Jan 23, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@nkta3m
Copy link

nkta3m commented Jan 23, 2024

Describe the bug
i set my_color = mpf.make_marketcolors( up="red",down="green",volume="in", inherit=True)

but plot draw green bar when open=close, and open price higher than previous day close.

Expected behavior
Display colors correctly

Screenshots
001324

Desktop (please complete the following information):

  • OS: [Windows 10]
  • Browser [firefox]
  • Version [mplfinance 0.12.10b0]

Additional context
Add any other context about the problem here.

@nkta3m nkta3m added the bug Something isn't working label Jan 23, 2024
@DanielGoldfarb
Copy link
Collaborator

This is not a bug.

By definition, the colors on traditional candlestick charts depend only on the change from the Open to the Close. Previous prices have no affect on candlestick color when using traditional candlestick charts.

However "hollow and filled" candlesticks do look at the previous price: Click here for more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants