pub struct SubsetStatsMsg {Show 18 fields
pub total_trades: usize,
pub winning_trades: usize,
pub losing_trades: usize,
pub breakeven_trades: usize,
pub total_pnl: f64,
pub gross_profit: f64,
pub gross_loss: f64,
pub win_rate: f64,
pub profit_factor: f64,
pub avg_win: f64,
pub avg_loss: f64,
pub win_loss_ratio: f64,
pub expectancy: f64,
pub largest_win: f64,
pub largest_loss: f64,
pub commission: f64,
pub swap: f64,
pub gross_pnl: Option<f64>,
}Expand description
Wire-safe mirror of SubsetStats.
Fields§
§total_trades: usize§winning_trades: usize§losing_trades: usize§breakeven_trades: usize§total_pnl: f64§gross_profit: f64§gross_loss: f64§win_rate: f64§profit_factor: f64§avg_win: f64§avg_loss: f64§win_loss_ratio: f64§expectancy: f64§largest_win: f64§largest_loss: f64§commission: f64Commission settled on this subset’s rows.
swap: f64Swap settled on this subset’s rows.
gross_pnl: Option<f64>Subset profit and loss before commission and swap, present only when either was settled.
Trait Implementations§
Source§impl Clone for SubsetStatsMsg
impl Clone for SubsetStatsMsg
Source§impl Debug for SubsetStatsMsg
impl Debug for SubsetStatsMsg
Source§impl<'de> Deserialize<'de> for SubsetStatsMsg
impl<'de> Deserialize<'de> for SubsetStatsMsg
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 SubsetStatsMsg
impl RefUnwindSafe for SubsetStatsMsg
impl Send for SubsetStatsMsg
impl Sync for SubsetStatsMsg
impl Unpin for SubsetStatsMsg
impl UnsafeUnpin for SubsetStatsMsg
impl UnwindSafe for SubsetStatsMsg
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