pub struct Metrics {Show 19 fields
pub strategy: String,
pub period: String,
pub total_return: f64,
pub cagr: f64,
pub vol: f64,
pub sharpe: f64,
pub sortino: f64,
pub max_drawdown: f64,
pub calmar: f64,
pub exposure: f64,
pub trades: usize,
pub win_ratio: f64,
pub avg_win: f64,
pub avg_loss: f64,
pub ev_per_trade: f64,
pub profit_factor: f64,
pub avg_days: f64,
pub best_trade: f64,
pub worst_trade: f64,
}Expand description
The standard scorecard.
Fields§
§strategy: String§period: String§total_return: f64§cagr: f64§vol: f64§sharpe: f64§sortino: f64§max_drawdown: f64§calmar: f64§exposure: f64§trades: usize§win_ratio: f64§avg_win: f64§avg_loss: f64§ev_per_trade: f64§profit_factor: f64§avg_days: f64§best_trade: f64§worst_trade: f64Trait Implementations§
Auto Trait Implementations§
impl Freeze for Metrics
impl RefUnwindSafe for Metrics
impl Send for Metrics
impl Sync for Metrics
impl Unpin for Metrics
impl UnsafeUnpin for Metrics
impl UnwindSafe for Metrics
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