pub struct CloseReasonStats {
pub reason: CloseReason,
pub count: usize,
pub total_pnl: f64,
pub avg_pnl: f64,
pub percentage: f64,
}Expand description
Statistics for one close reason.
Fields§
§reason: CloseReasonThe close reason.
count: usizeHow many trades closed for this reason.
total_pnl: f64Sum of P&L for trades with this reason.
avg_pnl: f64Average P&L per trade for this reason.
percentage: f64Fraction of all trades that closed for this reason.
Trait Implementations§
Source§impl Clone for CloseReasonStats
impl Clone for CloseReasonStats
Source§fn clone(&self) -> CloseReasonStats
fn clone(&self) -> CloseReasonStats
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 moreSource§impl Debug for CloseReasonStats
impl Debug for CloseReasonStats
Source§impl<'de> Deserialize<'de> for CloseReasonStats
impl<'de> Deserialize<'de> for CloseReasonStats
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
Auto Trait Implementations§
impl Freeze for CloseReasonStats
impl RefUnwindSafe for CloseReasonStats
impl Send for CloseReasonStats
impl Sync for CloseReasonStats
impl Unpin for CloseReasonStats
impl UnsafeUnpin for CloseReasonStats
impl UnwindSafe for CloseReasonStats
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