add ref_time=(start|finish) option to candle filter to make it output conventional ohlc