Skip to main content

RegimeConfig

Struct RegimeConfig 

Source
pub struct RegimeConfig {
    pub hurst_trending: f64,
    pub hurst_mean_reverting: f64,
    pub vol_high_multiplier: f64,
    pub vol_low_multiplier: f64,
    pub adx_trend_threshold: f64,
    pub bb_width_quiet: f64,
    pub crisis_correlation_threshold: f64,
    pub crisis_pair_fraction: f64,
    pub garch_alpha: f64,
    pub garch_beta: f64,
    pub garch_omega: f64,
    pub garch_vol_multiplier: f64,
}
Expand description

Configuration thresholds for RegimeDetector.

All thresholds are adjustable at construction; defaults reflect common quant-research conventions.

Fields§

§hurst_trending: f64

Hurst exponent above which the market is Trending. Default: 0.6.

§hurst_mean_reverting: f64

Hurst exponent below which the market is MeanReverting. Default: 0.4.

§vol_high_multiplier: f64

Realized vol multiplier above which regime is HighVolatility. Default: 2.0.

§vol_low_multiplier: f64

Realized vol multiplier below which regime is LowVolatility. Default: 0.5.

§adx_trend_threshold: f64

ADX value above which trending classification is reinforced. Default: 25.0.

§bb_width_quiet: f64

Bollinger Band width below which low-volatility compression is confirmed. Default: 0.02.

§crisis_correlation_threshold: f64

Pearson correlation threshold; drop below this triggers Crisis. Default: 0.3.

§crisis_pair_fraction: f64

Fraction of asset pairs that must fall below crisis_correlation_threshold in the same window to declare Crisis. Default: 0.6.

§garch_alpha: f64

GARCH(1,1) alpha (innovation weight). Default: 0.1.

§garch_beta: f64

GARCH(1,1) beta (persistence weight). Default: 0.85.

§garch_omega: f64

GARCH(1,1) omega (long-run variance floor). Default: 1e-6.

§garch_vol_multiplier: f64

Multiplier applied to GARCH variance to flag persistent high-vol. Default: 1.5.

Trait Implementations§

Source§

impl Clone for RegimeConfig

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RegimeConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for RegimeConfig

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.