Refactored candlesticks to arbitrary intervals