pub struct DrawdownStats {
pub peak_equity: f64,
pub current_drawdown: f64,
pub current_drawdown_pct: f64,
pub max_drawdown: f64,
pub max_drawdown_pct: f64,
pub max_drawdown_duration_bars: usize,
}Expand description
Drawdown statistics across an equity curve.
Fields§
§peak_equity: f64§current_drawdown: f64§current_drawdown_pct: f64§max_drawdown: f64§max_drawdown_pct: f64§max_drawdown_duration_bars: usizeTrait Implementations§
Source§impl Clone for DrawdownStats
impl Clone for DrawdownStats
Source§fn clone(&self) -> DrawdownStats
fn clone(&self) -> DrawdownStats
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 moreimpl Copy for DrawdownStats
Source§impl Debug for DrawdownStats
impl Debug for DrawdownStats
Source§impl<'de> Deserialize<'de> for DrawdownStats
impl<'de> Deserialize<'de> for DrawdownStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DrawdownStats
impl PartialEq for DrawdownStats
Source§impl Serialize for DrawdownStats
impl Serialize for DrawdownStats
impl StructuralPartialEq for DrawdownStats
Auto Trait Implementations§
impl Freeze for DrawdownStats
impl RefUnwindSafe for DrawdownStats
impl Send for DrawdownStats
impl Sync for DrawdownStats
impl Unpin for DrawdownStats
impl UnsafeUnpin for DrawdownStats
impl UnwindSafe for DrawdownStats
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