pub fn resample(bars: &[Bar], tf_ms: i64) -> Vec<Bar>Expand description
Aggregate bars into tf_ms buckets (open of the first, high/low over all,
close of the last, summed volume). A bucket’s time is its last
constituent bar’s time — the bar it is confirmed on — so request.security
can align it non-repainting.