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§
Sourcefn clone_for_symbol(&self, symbol: &str) -> Box<dyn Strategy>
fn clone_for_symbol(&self, symbol: &str) -> Box<dyn Strategy>
Clone the strategy for a specific symbol
Sourcefn on_completion(&mut self, results: &FxHashMap<SmartString, BacktestStats>)
fn on_completion(&mut self, results: &FxHashMap<SmartString, BacktestStats>)
Called after all backtests complete with results