pub struct TradingMetrics {
pub order_flow_imbalance: f64,
pub vwap: Decimal,
pub twap: Decimal,
pub microstructure_signals: MicrostructureSignals,
pub execution_quality: ExecutionQualityMetrics,
}Expand description
Trading-specific performance metrics for strategy analysis
Advanced metrics for evaluating trading performance including price benchmarks and microstructure signal analysis.
Fields§
§order_flow_imbalance: f64Order flow imbalance indicator (-1.0 to 1.0)
vwap: DecimalVolume-weighted average price over measurement period
twap: DecimalTime-weighted average price over measurement period
microstructure_signals: MicrostructureSignalsCollection of microstructure trading signals
execution_quality: ExecutionQualityMetricsExecution quality measurements
Trait Implementations§
Source§impl Clone for TradingMetrics
impl Clone for TradingMetrics
Source§fn clone(&self) -> TradingMetrics
fn clone(&self) -> TradingMetrics
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TradingMetrics
impl RefUnwindSafe for TradingMetrics
impl Send for TradingMetrics
impl Sync for TradingMetrics
impl Unpin for TradingMetrics
impl UnwindSafe for TradingMetrics
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