pub struct StrategyParams {Show 19 fields
pub ema_short_period: usize,
pub ema_mid_period: usize,
pub ema_long_period: usize,
pub rsi_period: usize,
pub rsi_overbought: f64,
pub rsi_oversold: f64,
pub bb_period: usize,
pub bb_std_dev: f64,
pub atr_period: usize,
pub atr_position_size_factor: f64,
pub macd_fast: usize,
pub macd_slow: usize,
pub macd_signal: usize,
pub obv_ema_period: usize,
pub volume_threshold: f64,
pub min_signals_for_buy: usize,
pub min_signals_for_sell: usize,
pub stop_loss_atr_multiple: f64,
pub take_profit_atr_multiple: f64,
}
Expand description
Strategy parameters for the adaptive trend-filtered strategy
Fields§
§ema_short_period: usize
§ema_mid_period: usize
§ema_long_period: usize
§rsi_period: usize
§rsi_overbought: f64
§rsi_oversold: f64
§bb_period: usize
§bb_std_dev: f64
§atr_period: usize
§atr_position_size_factor: f64
§macd_fast: usize
§macd_slow: usize
§macd_signal: usize
§obv_ema_period: usize
§volume_threshold: f64
§min_signals_for_buy: usize
§min_signals_for_sell: usize
§stop_loss_atr_multiple: f64
§take_profit_atr_multiple: f64
Trait Implementations§
Source§impl Clone for StrategyParams
impl Clone for StrategyParams
Source§fn clone(&self) -> StrategyParams
fn clone(&self) -> StrategyParams
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for StrategyParams
impl RefUnwindSafe for StrategyParams
impl Send for StrategyParams
impl Sync for StrategyParams
impl Unpin for StrategyParams
impl UnwindSafe for StrategyParams
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
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