Skip to main content

run_batch

Function run_batch 

Source
pub fn run_batch<I: Indicator + ?Sized>(
    indicator: &mut I,
    bars: &[Bar],
) -> Vec<TimestampedOutput>
Expand description

Resets indicator, then feeds bars through it in order, collecting one TimestampedOutput per bar. Two calls with the same indicator type and bars slice always produce identical results (deterministic backfill / reproducible replay).