pub struct SwingStructureOutput {
pub median_impulse_atr: f64,
pub median_correction_atr: f64,
pub correction_impulse_ratio: f64,
pub recent_corrections_atr: Vec<f64>,
pub trend_quality: TrendQuality,
pub current_retracement_atr: f64,
pub entry_zone_reached: bool,
pub remaining_potential_atr: f64,
pub required_stop_atr: f64,
pub potential_crv: f64,
pub last_impulse_velocity_atr: f64,
pub series_capabilities: Option<SeriesCapabilities>,
}Expand description
Statistical Swing-Structure output (plan Anhang D): trend strength expressed via the relative size of consecutive impulse/correction legs, ATR-normalized, instead of a binary “trend up/down” flag.
Fields§
§median_impulse_atr: f64§median_correction_atr: f64§correction_impulse_ratio: f64§recent_corrections_atr: Vec<f64>Most recent corrections first (newest → oldest), in ATR.
trend_quality: TrendQuality§current_retracement_atr: f64§entry_zone_reached: bool§remaining_potential_atr: f64§required_stop_atr: f64§potential_crv: f64§last_impulse_velocity_atr: f64§series_capabilities: Option<SeriesCapabilities>Which series this output was computed on, if the caller attached one via
SwingStructureOutput::with_capabilities. None by default: a structure result is
only meaningful for the series (session cut,
roll/adjustment, provenance) it was computed on.
Implementations§
Source§impl SwingStructureOutput
impl SwingStructureOutput
Sourcepub fn with_capabilities(self, capabilities: SeriesCapabilities) -> Self
pub fn with_capabilities(self, capabilities: SeriesCapabilities) -> Self
Tags this output with the series it was computed on. See
SwingStructureOutput::series_capabilities for why this matters.
Trait Implementations§
Source§impl Clone for SwingStructureOutput
impl Clone for SwingStructureOutput
Source§fn clone(&self) -> SwingStructureOutput
fn clone(&self) -> SwingStructureOutput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SwingStructureOutput
impl Debug for SwingStructureOutput
Source§impl<'de> Deserialize<'de> for SwingStructureOutput
impl<'de> Deserialize<'de> for SwingStructureOutput
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
Source§impl PartialEq for SwingStructureOutput
impl PartialEq for SwingStructureOutput
Source§impl Serialize for SwingStructureOutput
impl Serialize for SwingStructureOutput
impl StructuralPartialEq for SwingStructureOutput
Auto Trait Implementations§
impl Freeze for SwingStructureOutput
impl RefUnwindSafe for SwingStructureOutput
impl Send for SwingStructureOutput
impl Sync for SwingStructureOutput
impl Unpin for SwingStructureOutput
impl UnsafeUnpin for SwingStructureOutput
impl UnwindSafe for SwingStructureOutput
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