pub struct Sd2Reading {Show 20 fields
pub sd: f64,
pub lean: f64,
pub p_up: f64,
pub side: f64,
pub intensity: f64,
pub expected_move_sigma: f64,
pub expected_move_pct: f64,
pub horizon: usize,
pub calibrated_up_probability: f64,
pub decay_strength: f64,
pub phase: Option<f64>,
pub compression: u8,
pub energy: f64,
pub group_c: u8,
pub is_active_fire: bool,
pub in_squeeze: bool,
pub vol20: f64,
pub vol126: f64,
pub close: f64,
pub stretch: f64,
}Expand description
One SD v2 reading.
Fields§
§sd: f64The SD number, [0, 1].
lean: f64Momentum lean after time decay, [-1, 1]. Shown for context; it
no longer sets SD’s side (it calls direction at coin-flip rates).
p_up: f64Probability of a higher close in horizon bars (market weather + drift).
side: f64SD’s side: +1 above 0.5, −1 below (from p_up).
intensity: f64Expected-move rank, [0, 1].
expected_move_sigma: f64Expected |move| over horizon bars, in σ·√h units (≈0.8 is ordinary).
expected_move_pct: f64The same, as a fraction of price (0.05 = 5%).
horizon: usize§calibrated_up_probability: f64Historical share of up moves for readings like this one.
decay_strength: f64Time-decay strength of the current fire, [0, 1].
phase: Option<f64>τ/θ, or None if no squeeze has fired.
compression: u8§energy: f64§group_c: u8§is_active_fire: bool§in_squeeze: bool§vol20: f64Daily volatility (20 and 126 bars) at this bar.
vol126: f64§close: f64§stretch: f64How far price is from its 21-bar EMA, squashed to (−1, 1).
Trait Implementations§
Source§impl Clone for Sd2Reading
impl Clone for Sd2Reading
Source§fn clone(&self) -> Sd2Reading
fn clone(&self) -> Sd2Reading
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 Sd2Reading
impl Debug for Sd2Reading
Source§impl<'de> Deserialize<'de> for Sd2Reading
impl<'de> Deserialize<'de> for Sd2Reading
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
Auto Trait Implementations§
impl Freeze for Sd2Reading
impl RefUnwindSafe for Sd2Reading
impl Send for Sd2Reading
impl Sync for Sd2Reading
impl Unpin for Sd2Reading
impl UnsafeUnpin for Sd2Reading
impl UnwindSafe for Sd2Reading
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