pub struct PerformanceMetrics {
pub sharpe_ratio: f64,
pub sortino_ratio: f64,
pub calmar_ratio: f64,
pub omega_ratio: f64,
pub information_ratio: f64,
pub max_drawdown: f64,
pub cagr: f64,
}Expand description
Aggregate portfolio performance metrics.
Fields§
§sharpe_ratio: f64Sharpe ratio: excess return per unit of total volatility (annualised).
sortino_ratio: f64Sortino ratio: excess return per unit of downside deviation (annualised).
calmar_ratio: f64Calmar ratio: annualised return divided by maximum drawdown.
omega_ratio: f64Omega ratio: probability-weighted gains above threshold vs losses below.
information_ratio: f64Information ratio: active return divided by tracking error.
max_drawdown: f64Maximum peak-to-trough decline on the cumulative return series.
cagr: f64Compound annual growth rate.
Trait Implementations§
Source§impl Clone for PerformanceMetrics
impl Clone for PerformanceMetrics
Source§impl Debug for PerformanceMetrics
impl Debug for PerformanceMetrics
Source§impl PartialEq for PerformanceMetrics
impl PartialEq for PerformanceMetrics
impl StructuralPartialEq for PerformanceMetrics
Auto Trait Implementations§
impl Freeze for PerformanceMetrics
impl RefUnwindSafe for PerformanceMetrics
impl Send for PerformanceMetrics
impl Sync for PerformanceMetrics
impl Unpin for PerformanceMetrics
impl UnsafeUnpin for PerformanceMetrics
impl UnwindSafe for PerformanceMetrics
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