pub struct StrategyParams {Show 15 fields
pub sma_short_period: usize,
pub sma_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 macd_fast: usize,
pub macd_slow: usize,
pub macd_signal: usize,
pub atr_period: usize,
pub atr_multiplier: f64,
pub volume_threshold: f64,
pub min_signals_for_buy: usize,
pub min_signals_for_sell: usize,
}
Expand description
Strategy parameters for the volatility-focused multi-indicator strategy
Fields§
§sma_short_period: usize
§sma_long_period: usize
§rsi_period: usize
§rsi_overbought: f64
§rsi_oversold: f64
§bb_period: usize
§bb_std_dev: f64
§macd_fast: usize
§macd_slow: usize
§macd_signal: usize
§atr_period: usize
§atr_multiplier: f64
§volume_threshold: f64
§min_signals_for_buy: usize
§min_signals_for_sell: usize
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