pub struct ADXConfig {
pub period: usize,
pub adx_smoothing: usize,
pub strong_trend_threshold: f64,
pub very_strong_trend_threshold: f64,
}Expand description
Configuration for ADX calculation
Fields§
§period: usizePeriod for DI and ADX calculation (default: 14)
adx_smoothing: usizeSmoothing period for ADX (default: same as period)
strong_trend_threshold: f64Strong trend threshold (default: 25.0)
very_strong_trend_threshold: f64Very strong trend threshold (default: 50.0)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ADXConfig
impl<'de> Deserialize<'de> for ADXConfig
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
impl Copy for ADXConfig
impl StructuralPartialEq for ADXConfig
Auto Trait Implementations§
impl Freeze for ADXConfig
impl RefUnwindSafe for ADXConfig
impl Send for ADXConfig
impl Sync for ADXConfig
impl Unpin for ADXConfig
impl UnwindSafe for ADXConfig
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