Fixed issue with candlestick drawing

Closed #2602