Lets separate the candle with respect to color#18
Lets separate the candle with respect to color#18ubaidsworld wants to merge 1 commit intomatplotlib:masterfrom
Conversation
added a code so that person can separate the display of the candles in understanding format.
| colors.append(colorup) | ||
| elif open > close: | ||
| colors.append(colordown) | ||
| else: |
There was a problem hiding this comment.
@ubaidsworld Do you want to use some kind of a tolerance here? As written, it seems to me, that you will get your doji color only if the open and close are exactly equal (which in real life would be a very rare event indeed). Is that what you want? Did you run this code against any real data and are you happy with the way it works?
There was a problem hiding this comment.
Respected Sir,
Here are the answer to what you have asked me in the above conversation.
Do you want to use some kind of a tolerance here?
No. I do not want any tolerance as the doji candle I expected is to be gray in color. The growing or up candles in Green and the degrading or down candles in Red color. These look somewhat standard.
I, often, get doji candles. And that will help me in separating them from the up and down candles.
Is that what you want? Did you run this code against any real data and are you happy with the way it works?
Yes, I want that. I have tried it too. On my system I have made the changes with the library. And have got excellent experience viewing the candles through Matplotlib library mpl-finance.
Please have a look at this image:

I hope that your doubts are cleared.
added a code so that person can separate the display of the candles in understanding format.