Struct MarketPostureConfig
#[non_exhaustive]pub struct MarketPostureConfig {
pub event_recency_periods: usize,
pub event_label_min_warning: JumpWarningLevel,
pub vol_low_annualized: f64,
pub vol_high_annualized: f64,
}Expand description
Configuration for the market_posture_signal composite.
All fields carry daily-EOD defaults (see for_daily_eod).
The event gate is the saturation control: a jump only counts as active — and
thus only drives the EventDriven label and the negative event contribution to
composite_score — when it is both recent (periods_since_event <= event_recency_periods) and at least event_label_min_warning. Older or
sub-threshold jumps remain in the result’s events/primary_event for
reporting but no longer dominate the posture. The volatility band edges turn the
otherwise always-Neutral volatility driver into a signed risk-on/off
contributor so the composite is no longer structurally capped on the upside.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.event_recency_periods: usizeMaximum periods_since_event for a jump to count as active and drive the
posture. Older jumps stay in events/primary_event for reporting but no
longer dominate the label or pull the composite negative.
event_label_min_warning: JumpWarningLevelMinimum warning level an active jump must reach to drive the posture. At the
default Elevated, routine Watch-level blips no longer saturate the label
to EventDriven. Set to Watch to restore “any detected event dominates”.
vol_low_annualized: f64Lower annualized-volatility edge for the signed volatility driver: below
this the driver is Constructive (calm tape favours a risk-on backdrop).
vol_high_annualized: f64Upper annualized-volatility edge: above this the volatility driver is
Risk; between the two edges it is Neutral.
Implementations§
§impl MarketPostureConfig
impl MarketPostureConfig
pub fn for_daily_eod() -> Self
pub fn for_daily_eod() -> Self
Daily-EOD posture preset: an active jump must be within ~1 trading week and
at least Elevated to dominate; volatility bands at 15% / 35% annualized.
Trait Implementations§
§impl Clone for MarketPostureConfig
impl Clone for MarketPostureConfig
§fn clone(&self) -> MarketPostureConfig
fn clone(&self) -> MarketPostureConfig
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for MarketPostureConfig
impl Debug for MarketPostureConfig
§impl Default for MarketPostureConfig
impl Default for MarketPostureConfig
§impl PartialEq for MarketPostureConfig
impl PartialEq for MarketPostureConfig
impl StructuralPartialEq for MarketPostureConfig
Auto Trait Implementations§
impl Freeze for MarketPostureConfig
impl RefUnwindSafe for MarketPostureConfig
impl Send for MarketPostureConfig
impl Sync for MarketPostureConfig
impl Unpin for MarketPostureConfig
impl UnwindSafe for MarketPostureConfig
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)§impl<T> IntoEither for T
impl<T> IntoEither for T
§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.