Trait ParallelStrategy

Source
pub trait ParallelStrategy: Send + Sync {
    // Required methods
    fn clone_for_symbol(&self, symbol: &str) -> Box<dyn Strategy>;
    fn on_completion(&mut self, results: &FxHashMap<SmartString, BacktestStats>);
}
Expand description

Parallel strategy wrapper that clones strategies for each symbol

Required Methods§

Source

fn clone_for_symbol(&self, symbol: &str) -> Box<dyn Strategy>

Clone the strategy for a specific symbol

Source

fn on_completion(&mut self, results: &FxHashMap<SmartString, BacktestStats>)

Called after all backtests complete with results

Implementors§