matplotlib / mplfinance

Financial Markets Data Visualization using Matplotlib
https://pypi.org/project/mplfinance/
Other
3.48k stars 613 forks source link

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

Closed nkta3m closed 5 months ago

nkta3m commented 5 months ago

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

Additional context Add any other context about the problem here.

DanielGoldfarb commented 5 months ago

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.