Bug Report: marketcolors display error when open=close
nkta3m opened this issue · 1 comments
nkta3m commented
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
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.
DanielGoldfarb commented
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.
