pub struct RegimeConfig {
pub adx_period: usize,
pub adx_trending_threshold: f64,
pub adx_ranging_threshold: f64,
pub bb_period: usize,
pub bb_std_dev: f64,
pub bb_width_volatility_threshold: f64,
pub ema_short_period: usize,
pub ema_long_period: usize,
pub atr_period: usize,
pub atr_expansion_threshold: f64,
pub regime_stability_bars: usize,
pub min_regime_duration: usize,
}Fields§
§adx_period: usize§adx_trending_threshold: f64§adx_ranging_threshold: f64§bb_period: usize§bb_std_dev: f64§bb_width_volatility_threshold: f64§ema_short_period: usize§ema_long_period: usize§atr_period: usize§atr_expansion_threshold: f64§regime_stability_bars: usize§min_regime_duration: usizeImplementations§
Source§impl RegimeConfig
impl RegimeConfig
pub fn crypto_optimized() -> Self
pub fn conservative() -> Self
Trait Implementations§
Source§impl Clone for RegimeConfig
impl Clone for RegimeConfig
Source§fn clone(&self) -> RegimeConfig
fn clone(&self) -> RegimeConfig
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 RegimeConfig
impl Debug for RegimeConfig
Source§impl Default for RegimeConfig
impl Default for RegimeConfig
Source§impl<'de> Deserialize<'de> for RegimeConfig
impl<'de> Deserialize<'de> for RegimeConfig
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 RegimeConfig
impl RefUnwindSafe for RegimeConfig
impl Send for RegimeConfig
impl Sync for RegimeConfig
impl Unpin for RegimeConfig
impl UnsafeUnpin for RegimeConfig
impl UnwindSafe for RegimeConfig
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