#[repr(C)]pub struct StaticStats {Show 24 fields
pub total_trades: i32,
pub total_winning_trades: i32,
pub total_losing_trades: i32,
pub avg_profit: i64,
pub avg_profit_percent: i64,
pub avg_gain: i64,
pub avg_gain_percent: i64,
pub avg_loss: i64,
pub avg_loss_percent: i64,
pub profitability_ratio: i64,
pub profit_factor: i64,
pub profit_and_loss_ratio: i64,
pub total_fees: i64,
pub net_profit: i64,
pub beginning_equity: i64,
pub ending_equity: i64,
pub total_return: i64,
pub annualized_return: i64,
pub daily_standard_deviation_percentage: i64,
pub annual_standard_deviation_percentage: i64,
pub max_drawdown_percentage_period: i64,
pub max_drawdown_percentage_daily: i64,
pub sharpe_ratio: i64,
pub sortino_ratio: i64,
}Fields§
§total_trades: i32§total_winning_trades: i32§total_losing_trades: i32§avg_profit: i64§avg_profit_percent: i64§avg_gain: i64§avg_gain_percent: i64§avg_loss: i64§avg_loss_percent: i64§profitability_ratio: i64§profit_factor: i64§profit_and_loss_ratio: i64§total_fees: i64§net_profit: i64§beginning_equity: i64§ending_equity: i64§total_return: i64§annualized_return: i64§daily_standard_deviation_percentage: i64§annual_standard_deviation_percentage: i64§max_drawdown_percentage_period: i64§max_drawdown_percentage_daily: i64§sharpe_ratio: i64§sortino_ratio: i64Trait Implementations§
Source§impl Clone for StaticStats
impl Clone for StaticStats
Source§fn clone(&self) -> StaticStats
fn clone(&self) -> StaticStats
Returns a duplicate of the value. Read more
1.0.0 · 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 StaticStats
impl Debug for StaticStats
Source§impl<'de> Deserialize<'de> for StaticStats
impl<'de> Deserialize<'de> for StaticStats
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<'a, R: Row> FromRow<'a, R> for StaticStats
impl<'a, R: Row> FromRow<'a, R> for StaticStats
Source§impl PartialEq for StaticStats
impl PartialEq for StaticStats
Source§impl Serialize for StaticStats
impl Serialize for StaticStats
impl StructuralPartialEq for StaticStats
Auto Trait Implementations§
impl Freeze for StaticStats
impl RefUnwindSafe for StaticStats
impl Send for StaticStats
impl Sync for StaticStats
impl Unpin for StaticStats
impl UnwindSafe for StaticStats
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