pub struct BacktestRunner { /* private fields */ }Implementations§
Source§impl BacktestRunner
impl BacktestRunner
pub fn new(engine: PlaybookEngine) -> Self
Sourcepub async fn run(
&mut self,
candles: &[Candle],
window_size: usize,
) -> BacktestResult
pub async fn run( &mut self, candles: &[Candle], window_size: usize, ) -> BacktestResult
Run backtest over historical candles.
Uses a sliding window of window_size candles for indicator calculation.
Auto Trait Implementations§
impl Freeze for BacktestRunner
impl !RefUnwindSafe for BacktestRunner
impl Send for BacktestRunner
impl Sync for BacktestRunner
impl Unpin for BacktestRunner
impl UnsafeUnpin for BacktestRunner
impl !UnwindSafe for BacktestRunner
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more