Skip to main content

IndicatorConfig

Struct IndicatorConfig 

Source
pub struct IndicatorConfig {
Show 39 fields pub history_candles: usize, pub ema_len: usize, pub atr_len: usize, pub st_factor: f64, pub training_period: usize, pub highvol_pct: f64, pub midvol_pct: f64, pub lowvol_pct: f64, pub ts_max_length: usize, pub ts_accel_mult: f64, pub ts_rma_len: usize, pub ts_hma_len: usize, pub ts_collen: usize, pub ts_lookback: usize, pub ts_speed_exit_threshold: Option<f64>, pub liq_period: usize, pub liq_bins: usize, pub conf_ema_fast: usize, pub conf_ema_slow: usize, pub conf_ema_trend: usize, pub conf_rsi_len: usize, pub conf_adx_len: usize, pub conf_min_score: f64, pub struct_swing_len: usize, pub struct_atr_mult: f64, pub fib_zone_enabled: bool, pub signal_mode: String, pub signal_confirm_bars: usize, pub cvd_slope_bars: usize, pub cvd_div_lookback: usize, pub wave_pct_l: f64, pub wave_pct_s: f64, pub mom_pct_min: f64, pub vol_pct_window: usize, pub hurst_threshold: f64, pub hurst_lookback: usize, pub stop_atr_mult: f64, pub min_vol_pct: f64, pub min_hold_candles: usize,
}
Expand description

All tunable parameters that live inside indicators and compute_signal. Every field maps 1-to-1 to a key in the Python SETTINGS dict so Optuna-tuned JSON files load with zero field renaming.

Fields§

§history_candles: usize

Candle buffer capacity

§ema_len: usize§atr_len: usize§st_factor: f64§training_period: usize§highvol_pct: f64§midvol_pct: f64§lowvol_pct: f64§ts_max_length: usize§ts_accel_mult: f64§ts_rma_len: usize§ts_hma_len: usize§ts_collen: usize§ts_lookback: usize§ts_speed_exit_threshold: Option<f64>§liq_period: usize§liq_bins: usize§conf_ema_fast: usize§conf_ema_slow: usize§conf_ema_trend: usize§conf_rsi_len: usize§conf_adx_len: usize§conf_min_score: f64§struct_swing_len: usize§struct_atr_mult: f64§fib_zone_enabled: bool§signal_mode: String

"majority" | "strict" | "any"

§signal_confirm_bars: usize§cvd_slope_bars: usize§cvd_div_lookback: usize§wave_pct_l: f64§wave_pct_s: f64§mom_pct_min: f64§vol_pct_window: usize§hurst_threshold: f64§hurst_lookback: usize§stop_atr_mult: f64§min_vol_pct: f64§min_hold_candles: usize

Trait Implementations§

Source§

impl Clone for IndicatorConfig

Source§

fn clone(&self) -> IndicatorConfig

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for IndicatorConfig

Source§

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

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

impl Default for IndicatorConfig

Source§

fn default() -> Self

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

impl<'de> Deserialize<'de> for IndicatorConfig

Source§

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 Serialize for IndicatorConfig

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. 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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,