Wrong candlestick graph

When I want to plot candlestick graphs , an error occurred . if all the prices are equal with each other , I mean ohlc prices , increasing bars become RED and vice versa .
look at this :

and data are :

So, if you look at 5th of August , you will understand that it has increased based on it’s yesterday but candle is RED.
(also , this is random … in some cases it is green and in the others , red!!!)

Thanks a lot!