pub struct StatisticalArb {
pub symbol_a: String,
pub symbol_b: String,
pub hedge_ratio: f64,
pub spread: f64,
pub z_score: f64,
pub signal: ArbSignal,
}Expand description
Statistical arbitrage pair with z-score based signalling.
Fields§
§symbol_a: StringFirst leg symbol.
symbol_b: StringSecond leg symbol.
hedge_ratio: f64Hedge ratio (units of B per unit of A).
spread: f64Current spread value: price_a - hedge_ratio * price_b.
z_score: f64Z-score of the current spread relative to its historical distribution.
signal: ArbSignalTrading signal derived from the z-score.
Trait Implementations§
Source§impl Clone for StatisticalArb
impl Clone for StatisticalArb
Source§impl Debug for StatisticalArb
impl Debug for StatisticalArb
Source§impl PartialEq for StatisticalArb
impl PartialEq for StatisticalArb
impl StructuralPartialEq for StatisticalArb
Auto Trait Implementations§
impl Freeze for StatisticalArb
impl RefUnwindSafe for StatisticalArb
impl Send for StatisticalArb
impl Sync for StatisticalArb
impl Unpin for StatisticalArb
impl UnsafeUnpin for StatisticalArb
impl UnwindSafe for StatisticalArb
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