pub struct BacktestArgsDynamic<Strategy, Risk> {
pub id: SmolStr,
pub risk_free_return: Decimal,
pub strategy: Strategy,
pub risk: Risk,
}Expand description
Configuration for variables that can change between individual backtests.
Contains parameters that define a specific strategy variant to test.
Fields§
§id: SmolStrUnique identifier for this backtest.
risk_free_return: DecimalRisk-free return rate used for performance metrics.
strategy: StrategyTrading strategy to backtest.
risk: RiskRisk management rules.
Trait Implementations§
Source§impl<Strategy: Clone, Risk: Clone> Clone for BacktestArgsDynamic<Strategy, Risk>
impl<Strategy: Clone, Risk: Clone> Clone for BacktestArgsDynamic<Strategy, Risk>
Source§fn clone(&self) -> BacktestArgsDynamic<Strategy, Risk>
fn clone(&self) -> BacktestArgsDynamic<Strategy, Risk>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<Strategy, Risk> Freeze for BacktestArgsDynamic<Strategy, Risk>
impl<Strategy, Risk> RefUnwindSafe for BacktestArgsDynamic<Strategy, Risk>where
Strategy: RefUnwindSafe,
Risk: RefUnwindSafe,
impl<Strategy, Risk> Send for BacktestArgsDynamic<Strategy, Risk>
impl<Strategy, Risk> Sync for BacktestArgsDynamic<Strategy, Risk>
impl<Strategy, Risk> Unpin for BacktestArgsDynamic<Strategy, Risk>
impl<Strategy, Risk> UnsafeUnpin for BacktestArgsDynamic<Strategy, Risk>where
Strategy: UnsafeUnpin,
Risk: UnsafeUnpin,
impl<Strategy, Risk> UnwindSafe for BacktestArgsDynamic<Strategy, Risk>where
Strategy: UnwindSafe,
Risk: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more