candlestick works with generic accessor functions to data