pub struct BacktestResult {
pub equity_curve: Vec<f64>,
pub trades: Vec<CompletedTrade>,
pub metrics: BacktestMetrics,
}Expand description
Full result of a BacktestEngine::run call.
Fields§
§equity_curve: Vec<f64>Equity sampled after every bar.
trades: Vec<CompletedTrade>All completed round-trip trades.
metrics: BacktestMetricsComputed performance metrics.
Trait Implementations§
Source§impl Clone for BacktestResult
impl Clone for BacktestResult
Auto Trait Implementations§
impl Freeze for BacktestResult
impl RefUnwindSafe for BacktestResult
impl Send for BacktestResult
impl Sync for BacktestResult
impl Unpin for BacktestResult
impl UnsafeUnpin for BacktestResult
impl UnwindSafe for BacktestResult
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