ECandle handleEvent() change