added candle code